1 // Copyright 2022 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef BASE_POWER_MONITOR_POWER_MONITOR_FEATURES_H_ 6 #define BASE_POWER_MONITOR_POWER_MONITOR_FEATURES_H_ 7 8 #include "base/base_export.h" 9 #include "base/feature_list.h" 10 #include "build/build_config.h" 11 12 namespace base { 13 14 #if BUILDFLAG(IS_IOS) 15 // Under this feature, iOS power monitor will not post power suspend/resume 16 // event notifications on application entering background/foreground. This 17 // feature can keep tcp socket connection always alive on iOS. 18 BASE_EXPORT BASE_DECLARE_FEATURE(kRemoveIOSPowerEventNotifications); 19 #endif 20 21 } // namespace base 22 23 #endif // BASE_POWER_MONITOR_POWER_MONITOR_FEATURES_H_ 24