xref: /aosp_15_r20/external/cronet/base/power_monitor/power_monitor_features.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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