Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: chrome/browser/chromeos/cros/network_library_impl_cros.h

Issue 10824242: This adds Cros API for calling the "Refresh" function on shill's (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed indentation nit Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_CROS_NETWORK_LIBRARY_IMPL_CROS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_IMPL_CROS_H_
6 #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_IMPL_CROS_H_ 6 #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_IMPL_CROS_H_
7 7
8 #include "chrome/browser/chromeos/cros/network_library_impl_base.h" 8 #include "chrome/browser/chromeos/cros/network_library_impl_base.h"
9 9
10 namespace chromeos { 10 namespace chromeos {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 virtual void EnterPin(const std::string& pin) OVERRIDE; 53 virtual void EnterPin(const std::string& pin) OVERRIDE;
54 virtual void UnblockPin(const std::string& puk, 54 virtual void UnblockPin(const std::string& puk,
55 const std::string& new_pin) OVERRIDE; 55 const std::string& new_pin) OVERRIDE;
56 virtual void RequestCellularScan() OVERRIDE; 56 virtual void RequestCellularScan() OVERRIDE;
57 virtual void RequestCellularRegister(const std::string& network_id) OVERRIDE; 57 virtual void RequestCellularRegister(const std::string& network_id) OVERRIDE;
58 virtual void SetCellularDataRoamingAllowed(bool new_value) OVERRIDE; 58 virtual void SetCellularDataRoamingAllowed(bool new_value) OVERRIDE;
59 virtual bool IsCellularAlwaysInRoaming() OVERRIDE; 59 virtual bool IsCellularAlwaysInRoaming() OVERRIDE;
60 virtual void RequestNetworkScan() OVERRIDE; 60 virtual void RequestNetworkScan() OVERRIDE;
61 virtual bool GetWifiAccessPoints(WifiAccessPointVector* result) OVERRIDE; 61 virtual bool GetWifiAccessPoints(WifiAccessPointVector* result) OVERRIDE;
62 62
63 virtual void RefreshIPConfig(Network* network) OVERRIDE;
64
63 virtual void DisconnectFromNetwork(const Network* network) OVERRIDE; 65 virtual void DisconnectFromNetwork(const Network* network) OVERRIDE;
64 virtual void CallEnableNetworkDeviceType( 66 virtual void CallEnableNetworkDeviceType(
65 ConnectionType device, bool enable) OVERRIDE; 67 ConnectionType device, bool enable) OVERRIDE;
66 virtual void CallRemoveNetwork(const Network* network) OVERRIDE; 68 virtual void CallRemoveNetwork(const Network* network) OVERRIDE;
67 69
68 virtual void EnableOfflineMode(bool enable) OVERRIDE; 70 virtual void EnableOfflineMode(bool enable) OVERRIDE;
69 71
70 virtual NetworkIPConfigVector GetIPConfigs( 72 virtual NetworkIPConfigVector GetIPConfigs(
71 const std::string& device_path, 73 const std::string& device_path,
72 std::string* hardware_address, 74 std::string* hardware_address,
73 HardwareAddressFormat format) OVERRIDE; 75 HardwareAddressFormat format) OVERRIDE;
74 virtual void SetIPConfig(const NetworkIPConfig& ipconfig) OVERRIDE; 76 virtual void SetIPConfig(const NetworkIPConfig& ipconfig) OVERRIDE;
75 77
76 ////////////////////////////////////////////////////////////////////////////// 78 //////////////////////////////////////////////////////////////////////////////
77 // Calbacks. 79 // Callbacks.
78 void UpdateNetworkStatus( 80 void UpdateNetworkStatus(
79 const std::string& path, const std::string& key, const Value& value); 81 const std::string& path, const std::string& key, const Value& value);
80 82
81 void UpdateNetworkDeviceStatus( 83 void UpdateNetworkDeviceStatus(
82 const std::string& path, const std::string& key, const Value& value); 84 const std::string& path, const std::string& key, const Value& value);
83 // Cellular specific updates. Returns false if update was ignored / reverted 85 // Cellular specific updates. Returns false if update was ignored / reverted
84 // and notification should be skipped. 86 // and notification should be skipped.
85 bool UpdateCellularDeviceStatus(NetworkDevice* device, PropertyIndex index); 87 bool UpdateCellularDeviceStatus(NetworkDevice* device, PropertyIndex index);
86 88
87 void PinOperationCallback(const std::string& path, 89 void PinOperationCallback(const std::string& path,
(...skipping 19 matching lines...) Expand all
107 void NetworkManagerUpdate(const std::string& manager_path, 109 void NetworkManagerUpdate(const std::string& manager_path,
108 const base::DictionaryValue* properties); 110 const base::DictionaryValue* properties);
109 111
110 void NetworkServiceUpdate(const std::string& service_path, 112 void NetworkServiceUpdate(const std::string& service_path,
111 const base::DictionaryValue* properties); 113 const base::DictionaryValue* properties);
112 void RememberedNetworkServiceUpdate(const std::string& service_path, 114 void RememberedNetworkServiceUpdate(const std::string& service_path,
113 const base::DictionaryValue* properties); 115 const base::DictionaryValue* properties);
114 void NetworkDeviceUpdate(const std::string& device_path, 116 void NetworkDeviceUpdate(const std::string& device_path,
115 const base::DictionaryValue* properties); 117 const base::DictionaryValue* properties);
116 118
119 // Second half of refreshing IPConfig for a network. Refreshes all IP config
120 // paths found in properties.
121 void RefreshIPConfigCallback(const std::string& device_path,
122 const base::DictionaryValue* properties);
123
117 private: 124 private:
118 // This processes all Manager update messages. 125 // This processes all Manager update messages.
119 bool NetworkManagerStatusChanged(const std::string& key, const Value* value); 126 bool NetworkManagerStatusChanged(const std::string& key, const Value* value);
120 void ParseNetworkManager(const DictionaryValue& dict); 127 void ParseNetworkManager(const DictionaryValue& dict);
121 void UpdateTechnologies(const ListValue* technologies, int* bitfieldp); 128 void UpdateTechnologies(const ListValue* technologies, int* bitfieldp);
122 void UpdateAvailableTechnologies(const ListValue* technologies); 129 void UpdateAvailableTechnologies(const ListValue* technologies);
123 void UpdateEnabledTechnologies(const ListValue* technologies); 130 void UpdateEnabledTechnologies(const ListValue* technologies);
124 void UpdateConnectedTechnologies(const ListValue* technologies); 131 void UpdateConnectedTechnologies(const ListValue* technologies);
125 132
126 // Update network lists. 133 // Update network lists.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 174
168 // Map of monitored devices. 175 // Map of monitored devices.
169 NetworkWatcherMap monitored_devices_; 176 NetworkWatcherMap monitored_devices_;
170 177
171 DISALLOW_COPY_AND_ASSIGN(NetworkLibraryImplCros); 178 DISALLOW_COPY_AND_ASSIGN(NetworkLibraryImplCros);
172 }; 179 };
173 180
174 } // namespace chromeos 181 } // namespace chromeos
175 182
176 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_IMPL_CROS_H_ 183 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_IMPL_CROS_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/network_library.h ('k') | chrome/browser/chromeos/cros/network_library_impl_cros.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698