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/macros.h" | 8 #include "base/macros.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" |
11 | 11 |
12 class PrefRegistrySimple; | 12 class PrefRegistrySimple; |
13 | 13 |
14 namespace views { | |
15 class View; | |
16 } | |
17 | |
18 namespace chromeos { | 14 namespace chromeos { |
19 | 15 |
20 // This class is responsible for triggering cellular network related | 16 // This class is responsible for triggering cellular network related |
21 // notifications, specifically: | 17 // notifications, specifically: |
22 // * "Chrome will use mobile data..." when Cellular is the Default network | 18 // * "Chrome will use mobile data..." when Cellular is the Default network |
23 // for the first time. | 19 // for the first time. |
24 // * Data Promotion notifications when available / appropriate. | 20 // * Data Promotion notifications when available / appropriate. |
25 class DataPromoNotification : public NetworkStateHandlerObserver { | 21 class DataPromoNotification : public NetworkStateHandlerObserver { |
26 public: | 22 public: |
27 DataPromoNotification(); | 23 DataPromoNotification(); |
(...skipping 17 matching lines...) Expand all Loading... |
45 | 41 |
46 // Factory for delaying showing promo notification. | 42 // Factory for delaying showing promo notification. |
47 base::WeakPtrFactory<DataPromoNotification> weak_ptr_factory_; | 43 base::WeakPtrFactory<DataPromoNotification> weak_ptr_factory_; |
48 | 44 |
49 DISALLOW_COPY_AND_ASSIGN(DataPromoNotification); | 45 DISALLOW_COPY_AND_ASSIGN(DataPromoNotification); |
50 }; | 46 }; |
51 | 47 |
52 } // namespace chromeos | 48 } // namespace chromeos |
53 | 49 |
54 #endif // CHROME_BROWSER_CHROMEOS_STATUS_DATA_PROMO_NOTIFICATION_H_ | 50 #endif // CHROME_BROWSER_CHROMEOS_STATUS_DATA_PROMO_NOTIFICATION_H_ |
OLD | NEW |