OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_DATA_PROMO_NOTIFICATION_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_DATA_PROMO_NOTIFICATION_H_ |
6 #define CHROME_BROWSER_CHROMEOS_STATUS_DATA_PROMO_NOTIFICATION_H_ | 6 #define CHROME_BROWSER_CHROMEOS_STATUS_DATA_PROMO_NOTIFICATION_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "chromeos/network/network_state_handler_observer.h" | 10 #include "chromeos/network/network_state_handler_observer.h" |
(...skipping 17 matching lines...) Expand all Loading... | |
28 ~DataPromoNotification() override; | 28 ~DataPromoNotification() override; |
29 | 29 |
30 static void RegisterPrefs(PrefRegistrySimple* registry); | 30 static void RegisterPrefs(PrefRegistrySimple* registry); |
31 | 31 |
32 private: | 32 private: |
33 // NetworkStateHandlerObserver | 33 // NetworkStateHandlerObserver |
34 void NetworkPropertiesUpdated(const NetworkState* network) override; | 34 void NetworkPropertiesUpdated(const NetworkState* network) override; |
35 void DefaultNetworkChanged(const NetworkState* network) override; | 35 void DefaultNetworkChanged(const NetworkState* network) override; |
36 | 36 |
37 // Shows 3G promo notification if needed. | 37 // Shows 3G promo notification if needed. |
38 void ShowOptionalMobileDataPromoNotification(); | 38 void ShowOptionalMobileDataPromoNotification(bool hotkey_debug); |
Daniel Erat
2015/03/23 03:49:21
please update the comments to document what the "h
Greg Levin
2015/03/24 20:35:32
Done.
| |
39 | |
40 // Show notification prompting user to install Data Saver extension. | |
41 bool ShowDataSaverNotification(bool hotkey_debug); | |
39 | 42 |
40 // True if check for promo needs to be done, otherwise ignore it for the | 43 // True if check for promo needs to be done, otherwise ignore it for the |
41 // current session. | 44 // current session. |
42 bool check_for_promo_; | 45 bool check_for_promo_; |
43 | 46 |
44 // Factory for delaying showing promo notification. | 47 // Factory for delaying showing promo notification. |
45 base::WeakPtrFactory<DataPromoNotification> weak_ptr_factory_; | 48 base::WeakPtrFactory<DataPromoNotification> weak_ptr_factory_; |
46 | 49 |
47 DISALLOW_COPY_AND_ASSIGN(DataPromoNotification); | 50 DISALLOW_COPY_AND_ASSIGN(DataPromoNotification); |
48 }; | 51 }; |
49 | 52 |
50 } // namespace chromeos | 53 } // namespace chromeos |
51 | 54 |
52 #endif // CHROME_BROWSER_CHROMEOS_STATUS_DATA_PROMO_NOTIFICATION_H_ | 55 #endif // CHROME_BROWSER_CHROMEOS_STATUS_DATA_PROMO_NOTIFICATION_H_ |
OLD | NEW |