| 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 26 matching lines...) Expand all Loading... |
| 37 class InternetOptionsHandler | 37 class InternetOptionsHandler |
| 38 : public ::options::OptionsPageUIHandler, | 38 : public ::options::OptionsPageUIHandler, |
| 39 public chromeos::NetworkStateHandlerObserver { | 39 public chromeos::NetworkStateHandlerObserver { |
| 40 public: | 40 public: |
| 41 InternetOptionsHandler(); | 41 InternetOptionsHandler(); |
| 42 virtual ~InternetOptionsHandler(); | 42 virtual ~InternetOptionsHandler(); |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 // OptionsPageUIHandler | 45 // OptionsPageUIHandler |
| 46 virtual void GetLocalizedValues( | 46 virtual void GetLocalizedValues( |
| 47 base::DictionaryValue* localized_strings) OVERRIDE; | 47 base::DictionaryValue* localized_strings) override; |
| 48 virtual void InitializePage() OVERRIDE; | 48 virtual void InitializePage() override; |
| 49 | 49 |
| 50 // WebUIMessageHandler (from OptionsPageUIHandler) | 50 // WebUIMessageHandler (from OptionsPageUIHandler) |
| 51 virtual void RegisterMessages() OVERRIDE; | 51 virtual void RegisterMessages() override; |
| 52 | 52 |
| 53 // Callbacks to set network state properties. | 53 // Callbacks to set network state properties. |
| 54 void ShowMorePlanInfoCallback(const base::ListValue* args); | 54 void ShowMorePlanInfoCallback(const base::ListValue* args); |
| 55 void SetApnCallback(const base::ListValue* args); | 55 void SetApnCallback(const base::ListValue* args); |
| 56 void SetApnProperties(const base::ListValue* args, | 56 void SetApnProperties(const base::ListValue* args, |
| 57 const std::string& service_path, | 57 const std::string& service_path, |
| 58 const base::DictionaryValue& shill_properties); | 58 const base::DictionaryValue& shill_properties); |
| 59 void CarrierStatusCallback(); | 59 void CarrierStatusCallback(); |
| 60 void SetCarrierCallback(const base::ListValue* args); | 60 void SetCarrierCallback(const base::ListValue* args); |
| 61 void SimOperationCallback(const base::ListValue* args); | 61 void SimOperationCallback(const base::ListValue* args); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 77 // Updates the display of network connection information for the details page | 77 // Updates the display of network connection information for the details page |
| 78 // if visible. | 78 // if visible. |
| 79 void UpdateConnectionData(const std::string& service_path); | 79 void UpdateConnectionData(const std::string& service_path); |
| 80 void UpdateConnectionDataCallback( | 80 void UpdateConnectionDataCallback( |
| 81 const std::string& service_path, | 81 const std::string& service_path, |
| 82 const base::DictionaryValue& shill_properties); | 82 const base::DictionaryValue& shill_properties); |
| 83 // Called when carrier data has been updated to informs the JS. | 83 // Called when carrier data has been updated to informs the JS. |
| 84 void UpdateCarrier(); | 84 void UpdateCarrier(); |
| 85 | 85 |
| 86 // NetworkStateHandlerObserver | 86 // NetworkStateHandlerObserver |
| 87 virtual void DeviceListChanged() OVERRIDE; | 87 virtual void DeviceListChanged() override; |
| 88 virtual void NetworkListChanged() OVERRIDE; | 88 virtual void NetworkListChanged() override; |
| 89 virtual void NetworkConnectionStateChanged( | 89 virtual void NetworkConnectionStateChanged( |
| 90 const chromeos::NetworkState* network) OVERRIDE; | 90 const chromeos::NetworkState* network) override; |
| 91 virtual void NetworkPropertiesUpdated( | 91 virtual void NetworkPropertiesUpdated( |
| 92 const chromeos::NetworkState* network) OVERRIDE; | 92 const chromeos::NetworkState* network) override; |
| 93 virtual void DevicePropertiesUpdated( | 93 virtual void DevicePropertiesUpdated( |
| 94 const chromeos::DeviceState* device) OVERRIDE; | 94 const chromeos::DeviceState* device) override; |
| 95 | 95 |
| 96 // Updates the logged in user type. | 96 // Updates the logged in user type. |
| 97 void UpdateLoggedInUserType(); | 97 void UpdateLoggedInUserType(); |
| 98 | 98 |
| 99 // Additional callbacks to set network state properties. | 99 // Additional callbacks to set network state properties. |
| 100 void SetServerHostnameCallback(const base::ListValue* args); | 100 void SetServerHostnameCallback(const base::ListValue* args); |
| 101 void SetPreferNetworkCallback(const base::ListValue* args); | 101 void SetPreferNetworkCallback(const base::ListValue* args); |
| 102 void SetAutoConnectCallback(const base::ListValue* args); | 102 void SetAutoConnectCallback(const base::ListValue* args); |
| 103 void SetIPConfigCallback(const base::ListValue* args); | 103 void SetIPConfigCallback(const base::ListValue* args); |
| 104 void SetIPConfigProperties(const base::ListValue* args, | 104 void SetIPConfigProperties(const base::ListValue* args, |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 // of this object. | 153 // of this object. |
| 154 base::WeakPtrFactory<InternetOptionsHandler> weak_factory_; | 154 base::WeakPtrFactory<InternetOptionsHandler> weak_factory_; |
| 155 | 155 |
| 156 DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler); | 156 DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler); |
| 157 }; | 157 }; |
| 158 | 158 |
| 159 } // namespace options | 159 } // namespace options |
| 160 } // namespace chromeos | 160 } // namespace chromeos |
| 161 | 161 |
| 162 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ | 162 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ |
| OLD | NEW |