Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_NETWORK_MENU_BUTTON_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ | 6 #define CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/task.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "base/timer.h" | 12 #include "base/timer.h" |
| 13 #include "chrome/browser/chromeos/cros/network_library.h" | 13 #include "chrome/browser/chromeos/cros/network_library.h" |
| 14 #include "chrome/browser/chromeos/login/message_bubble.h" | 14 #include "chrome/browser/chromeos/login/message_bubble.h" |
| 15 #include "chrome/browser/chromeos/mobile_config.h" | 15 #include "chrome/browser/chromeos/mobile_config.h" |
| 16 #include "chrome/browser/chromeos/status/network_menu.h" | 16 #include "chrome/browser/chromeos/status/network_menu.h" |
| 17 #include "chrome/browser/chromeos/status/network_menu_icon.h" | 17 #include "chrome/browser/chromeos/status/network_menu_icon.h" |
| 18 #include "chrome/browser/chromeos/status/status_area_button.h" | 18 #include "chrome/browser/chromeos/status/status_area_button.h" |
| 19 | 19 |
| 20 class PrefService; | 20 class PrefService; |
| 21 | 21 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 153 // whose status is displayed in the network menu button. | 153 // whose status is displayed in the network menu button. |
| 154 std::string active_network_; | 154 std::string active_network_; |
| 155 | 155 |
| 156 // Current carrier deal info URL. | 156 // Current carrier deal info URL. |
| 157 std::string deal_info_url_; | 157 std::string deal_info_url_; |
| 158 | 158 |
| 159 // Current carrier deal top-up URL. | 159 // Current carrier deal top-up URL. |
| 160 std::string deal_topup_url_; | 160 std::string deal_topup_url_; |
| 161 | 161 |
| 162 // Factory for delaying showing promo notification. | 162 // Factory for delaying showing promo notification. |
| 163 ScopedRunnableMethodFactory<NetworkMenuButton> method_factory_; | 163 base::WeakPtrFactory<NetworkMenuButton> weak_factory_; |
|
satorux1
2011/10/25 01:11:54
nit: weak_ptr_factory_ may be a bit more descripti
achuithb
2011/10/25 08:29:52
Done.
| |
| 164 | 164 |
| 165 DISALLOW_COPY_AND_ASSIGN(NetworkMenuButton); | 165 DISALLOW_COPY_AND_ASSIGN(NetworkMenuButton); |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 } // namespace chromeos | 168 } // namespace chromeos |
| 169 | 169 |
| 170 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ | 170 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ |
| OLD | NEW |