| 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 | 10 |
| 11 class PrefService; | 11 class PrefServiceSimple; |
| 12 | 12 |
| 13 namespace ash { | 13 namespace ash { |
| 14 class NetworkTrayDelegate; | 14 class NetworkTrayDelegate; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace views { | 17 namespace views { |
| 18 class View; | 18 class View; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace chromeos { | 21 namespace chromeos { |
| 22 class NetworkLibrary; | 22 class NetworkLibrary; |
| 23 | 23 |
| 24 class DataPromoNotification { | 24 class DataPromoNotification { |
| 25 public: | 25 public: |
| 26 DataPromoNotification(); | 26 DataPromoNotification(); |
| 27 virtual ~DataPromoNotification(); | 27 virtual ~DataPromoNotification(); |
| 28 | 28 |
| 29 static void RegisterPrefs(PrefService* local_state); | 29 static void RegisterPrefs(PrefServiceSimple* local_state); |
| 30 | 30 |
| 31 const std::string& deal_info_url() const { return deal_info_url_; } | 31 const std::string& deal_info_url() const { return deal_info_url_; } |
| 32 const std::string& deal_topup_url() const { return deal_topup_url_; } | 32 const std::string& deal_topup_url() const { return deal_topup_url_; } |
| 33 | 33 |
| 34 // Shows 3G promo notification if needed. | 34 // Shows 3G promo notification if needed. |
| 35 void ShowOptionalMobileDataPromoNotification( | 35 void ShowOptionalMobileDataPromoNotification( |
| 36 NetworkLibrary* cros, | 36 NetworkLibrary* cros, |
| 37 views::View* host, | 37 views::View* host, |
| 38 ash::NetworkTrayDelegate* listener); | 38 ash::NetworkTrayDelegate* listener); |
| 39 | 39 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 53 | 53 |
| 54 // Factory for delaying showing promo notification. | 54 // Factory for delaying showing promo notification. |
| 55 base::WeakPtrFactory<DataPromoNotification> weak_ptr_factory_; | 55 base::WeakPtrFactory<DataPromoNotification> weak_ptr_factory_; |
| 56 | 56 |
| 57 DISALLOW_COPY_AND_ASSIGN(DataPromoNotification); | 57 DISALLOW_COPY_AND_ASSIGN(DataPromoNotification); |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 } // namespace chromeos | 60 } // namespace chromeos |
| 61 | 61 |
| 62 #endif // CHROME_BROWSER_CHROMEOS_STATUS_DATA_PROMO_NOTIFICATION_H_ | 62 #endif // CHROME_BROWSER_CHROMEOS_STATUS_DATA_PROMO_NOTIFICATION_H_ |
| OLD | NEW |