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

Side by Side Diff: chromeos/network/network_device_handler.h

Issue 19509002: Add support for Device.ProposeScan to NetworkDeviceHandler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed gauravsh@'s comments. Created 7 years, 5 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
« no previous file with comments | « chromeos/network/device_state.cc ('k') | chromeos/network/network_device_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROMEOS_NETWORK_NETWORK_DEVICE_HANDLER_H_ 5 #ifndef CHROMEOS_NETWORK_NETWORK_DEVICE_HANDLER_H_
6 #define CHROMEOS_NETWORK_NETWORK_DEVICE_HANDLER_H_ 6 #define CHROMEOS_NETWORK_NETWORK_DEVICE_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 const network_handler::ErrorCallback& error_callback) const; 54 const network_handler::ErrorCallback& error_callback) const;
55 55
56 // Requests a refresh of the IP configuration for the device specified by 56 // Requests a refresh of the IP configuration for the device specified by
57 // |device_path| if it exists. This will apply any newly configured 57 // |device_path| if it exists. This will apply any newly configured
58 // properties and renew the DHCP lease. 58 // properties and renew the DHCP lease.
59 void RequestRefreshIPConfigs( 59 void RequestRefreshIPConfigs(
60 const std::string& device_path, 60 const std::string& device_path,
61 const base::Closure& callback, 61 const base::Closure& callback,
62 const network_handler::ErrorCallback& error_callback); 62 const network_handler::ErrorCallback& error_callback);
63 63
64 // Requests a network scan on the device specified by |device_path|.
65 // For cellular networks, the result of this call gets asynchronously stored
66 // in the corresponding DeviceState object through a property update. For all
67 // other technologies a service gets created for each found network, which
68 // can be accessed through the corresponding NetworkState object.
69 //
70 // TODO(armansito): Device.ProposeScan is deprecated and the preferred method
71 // of requesting a network scan is Manager.RequestScan, however shill
72 // currently doesn't support cellular network scans via Manager.RequestScan.
73 // Remove this method once shill supports it (crbug.com/262356).
74 void ProposeScan(
75 const std::string& device_path,
76 const base::Closure& callback,
77 const network_handler::ErrorCallback& error_callback);
78
64 // Tells the device to set the modem carrier firmware, as specified by 79 // Tells the device to set the modem carrier firmware, as specified by
65 // |carrier|. 80 // |carrier|.
66 // 81 //
67 // See note on |callback| and |error_callback| in the class description 82 // See note on |callback| and |error_callback| in the class description
68 // above. The operation will fail if: 83 // above. The operation will fail if:
69 // - Device |device_path| could not be found. 84 // - Device |device_path| could not be found.
70 // - |carrier| doesn't match one of the supported carriers, as reported by 85 // - |carrier| doesn't match one of the supported carriers, as reported by
71 // - Shill. 86 // - Shill.
72 // - Operation is not supported by the device. 87 // - Operation is not supported by the device.
73 void SetCarrier( 88 void SetCarrier(
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 const network_handler::ErrorCallback& error_callback, 178 const network_handler::ErrorCallback& error_callback,
164 const std::string& error_name, 179 const std::string& error_name,
165 const std::string& error_message); 180 const std::string& error_message);
166 181
167 DISALLOW_COPY_AND_ASSIGN(NetworkDeviceHandler); 182 DISALLOW_COPY_AND_ASSIGN(NetworkDeviceHandler);
168 }; 183 };
169 184
170 } // namespace chromeos 185 } // namespace chromeos
171 186
172 #endif // CHROMEOS_NETWORK_NETWORK_DEVICE_HANDLER_H_ 187 #endif // CHROMEOS_NETWORK_NETWORK_DEVICE_HANDLER_H_
OLDNEW
« no previous file with comments | « chromeos/network/device_state.cc ('k') | chromeos/network/network_device_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698