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

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

Issue 156353002: Implement networkingPrivate.setWifiTDLSEnabledState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 10 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 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 22 matching lines...) Expand all
33 class CHROMEOS_EXPORT NetworkDeviceHandler { 33 class CHROMEOS_EXPORT NetworkDeviceHandler {
34 public: 34 public:
35 // Constants for |error_name| from |error_callback|. 35 // Constants for |error_name| from |error_callback|.
36 static const char kErrorFailure[]; 36 static const char kErrorFailure[];
37 static const char kErrorIncorrectPin[]; 37 static const char kErrorIncorrectPin[];
38 static const char kErrorNotFound[]; 38 static const char kErrorNotFound[];
39 static const char kErrorNotSupported[]; 39 static const char kErrorNotSupported[];
40 static const char kErrorPinBlocked[]; 40 static const char kErrorPinBlocked[];
41 static const char kErrorPinRequired[]; 41 static const char kErrorPinRequired[];
42 static const char kErrorUnknown[]; 42 static const char kErrorUnknown[];
43 static const char kErrorDeviceMissing[];
43 44
44 NetworkDeviceHandler(); 45 NetworkDeviceHandler();
45 virtual ~NetworkDeviceHandler(); 46 virtual ~NetworkDeviceHandler();
46 47
47 // Gets the properties of the device with id |device_path|. See note on 48 // Gets the properties of the device with id |device_path|. See note on
48 // |callback| and |error_callback|, in class description above. 49 // |callback| and |error_callback|, in class description above.
49 virtual void GetDeviceProperties( 50 virtual void GetDeviceProperties(
50 const std::string& device_path, 51 const std::string& device_path,
51 const network_handler::DictionaryResultCallback& callback, 52 const network_handler::DictionaryResultCallback& callback,
52 const network_handler::ErrorCallback& error_callback) const = 0; 53 const network_handler::ErrorCallback& error_callback) const = 0;
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 const std::string& old_pin, 186 const std::string& old_pin,
186 const std::string& new_pin, 187 const std::string& new_pin,
187 const base::Closure& callback, 188 const base::Closure& callback,
188 const network_handler::ErrorCallback& error_callback) = 0; 189 const network_handler::ErrorCallback& error_callback) = 0;
189 190
190 // Enables/disables roaming of all cellular devices. This happens 191 // Enables/disables roaming of all cellular devices. This happens
191 // asychronously in the background and applies also to devices which become 192 // asychronously in the background and applies also to devices which become
192 // available in the future. 193 // available in the future.
193 virtual void SetCellularAllowRoaming(bool allow_roaming) = 0; 194 virtual void SetCellularAllowRoaming(bool allow_roaming) = 0;
194 195
196 // Attempts to enable or disable TDLS for the specified IP or MAC address for
197 // the active wifi device.
198 virtual void SetWifiTDLSEnabled(
199 const std::string& ip_or_mac_address,
200 bool enabled,
201 const network_handler::StringResultCallback& callback,
202 const network_handler::ErrorCallback& error_callback) = 0;
203
204 // Returns the TDLS status for the specified IP or MAC address for
205 // the active wifi device.
206 virtual void GetWifiTDLSStatus(
207 const std::string& ip_or_mac_address,
208 const network_handler::StringResultCallback& callback,
209 const network_handler::ErrorCallback& error_callback) = 0;
210
195 private: 211 private:
196 DISALLOW_COPY_AND_ASSIGN(NetworkDeviceHandler); 212 DISALLOW_COPY_AND_ASSIGN(NetworkDeviceHandler);
197 }; 213 };
198 214
199 } // namespace chromeos 215 } // namespace chromeos
200 216
201 #endif // CHROMEOS_NETWORK_NETWORK_DEVICE_HANDLER_H_ 217 #endif // CHROMEOS_NETWORK_NETWORK_DEVICE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698