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_UI_WEBUI_OPTIONS2_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "chrome/browser/chromeos/cros/network_library.h" | 11 #include "chrome/browser/chromeos/cros/network_library.h" |
12 #include "chrome/browser/chromeos/cros/network_ui_data.h" | 12 #include "chrome/browser/chromeos/cros/network_ui_data.h" |
13 #include "chrome/browser/ui/webui/options2/options_ui.h" | 13 #include "chrome/browser/ui/webui/options2/options_ui.h" |
14 #include "content/public/browser/notification_registrar.h" | 14 #include "content/public/browser/notification_registrar.h" |
15 #include "ui/gfx/native_widget_types.h" | 15 #include "ui/gfx/native_widget_types.h" |
16 | 16 |
17 class Browser; | 17 class Browser; |
18 | 18 |
19 namespace gfx { | 19 namespace gfx { |
20 class ImageSkia; | 20 class ImageSkia; |
21 } | 21 } |
22 | 22 |
23 namespace views { | 23 namespace views { |
24 class WidgetDelegate; | 24 class WidgetDelegate; |
25 } | 25 } |
26 | 26 |
27 namespace options2 { | 27 namespace options { |
28 | 28 |
29 // ChromeOS internet options page UI handler. | 29 // ChromeOS internet options page UI handler. |
30 class InternetOptionsHandler | 30 class InternetOptionsHandler |
31 : public OptionsPageUIHandler, | 31 : public OptionsPageUIHandler, |
32 public chromeos::NetworkLibrary::NetworkManagerObserver, | 32 public chromeos::NetworkLibrary::NetworkManagerObserver, |
33 public chromeos::NetworkLibrary::NetworkObserver, | 33 public chromeos::NetworkLibrary::NetworkObserver, |
34 public chromeos::NetworkLibrary::CellularDataPlanObserver { | 34 public chromeos::NetworkLibrary::CellularDataPlanObserver { |
35 public: | 35 public: |
36 InternetOptionsHandler(); | 36 InternetOptionsHandler(); |
37 virtual ~InternetOptionsHandler(); | 37 virtual ~InternetOptionsHandler(); |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 content::NotificationRegistrar registrar_; | 181 content::NotificationRegistrar registrar_; |
182 | 182 |
183 // Weak pointer factory so we can start connections at a later time | 183 // Weak pointer factory so we can start connections at a later time |
184 // without worrying that they will actually try to happen after the lifetime | 184 // without worrying that they will actually try to happen after the lifetime |
185 // of this object. | 185 // of this object. |
186 base::WeakPtrFactory<InternetOptionsHandler> weak_factory_; | 186 base::WeakPtrFactory<InternetOptionsHandler> weak_factory_; |
187 | 187 |
188 DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler); | 188 DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler); |
189 }; | 189 }; |
190 | 190 |
191 } // namespace options2 | 191 } // namespace options |
192 | 192 |
193 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ | 193 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ |
OLD | NEW |