| 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_OPTIONS_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_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" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // Updates the logged in user type. | 103 // Updates the logged in user type. |
| 104 void UpdateLoggedInUserType(); | 104 void UpdateLoggedInUserType(); |
| 105 | 105 |
| 106 // Gets the native window for hosting dialogs, etc. | 106 // Gets the native window for hosting dialogs, etc. |
| 107 gfx::NativeWindow GetNativeWindow() const; | 107 gfx::NativeWindow GetNativeWindow() const; |
| 108 | 108 |
| 109 // Gets the user PrefService associated with the WebUI. | 109 // Gets the user PrefService associated with the WebUI. |
| 110 const PrefService* GetPrefs() const; | 110 const PrefService* GetPrefs() const; |
| 111 | 111 |
| 112 // Additional callbacks for managing networks. | 112 // Additional callbacks for managing networks. |
| 113 void AddConnection(const base::ListValue* args); | 113 void AddVPNConnection(const base::ListValue* args); |
| 114 void AddNonVPNConnection(const base::ListValue* args); |
| 114 void ConfigureNetwork(const base::ListValue* args); | 115 void ConfigureNetwork(const base::ListValue* args); |
| 115 void ActivateNetwork(const base::ListValue* args); | 116 void ActivateNetwork(const base::ListValue* args); |
| 116 void RemoveNetwork(const base::ListValue* args); | 117 void RemoveNetwork(const base::ListValue* args); |
| 117 | 118 |
| 118 // Requests that a list of VPN providers enabled in the primary user's | 119 // Requests that a list of VPN providers enabled in the primary user's |
| 119 // profile be sent to JavaScript. | 120 // profile be sent to JavaScript. |
| 120 void LoadVPNProvidersCallback(const base::ListValue* args); | 121 void LoadVPNProvidersCallback(const base::ListValue* args); |
| 121 | 122 |
| 122 // Creates the map of wired networks. | 123 // Creates the map of wired networks. |
| 123 base::ListValue* GetWiredList(); | 124 base::ListValue* GetWiredList(); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 142 // of this object. | 143 // of this object. |
| 143 base::WeakPtrFactory<InternetOptionsHandler> weak_factory_; | 144 base::WeakPtrFactory<InternetOptionsHandler> weak_factory_; |
| 144 | 145 |
| 145 DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler); | 146 DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler); |
| 146 }; | 147 }; |
| 147 | 148 |
| 148 } // namespace options | 149 } // namespace options |
| 149 } // namespace chromeos | 150 } // namespace chromeos |
| 150 | 151 |
| 151 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ | 152 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ |
| OLD | NEW |