OLD | NEW |
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 // These classes implement the chrome.networkingPrivate JavaScript extension | 5 // These classes implement the chrome.networkingPrivate JavaScript extension |
6 // API. | 6 // API. |
7 | 7 |
8 #ifndef CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_
H_ | 8 #ifndef CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_
H_ |
9 #define CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_
H_ | 9 #define CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_
H_ |
10 | 10 |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 // AsyncExtensionFunction overrides. | 328 // AsyncExtensionFunction overrides. |
329 virtual bool RunImpl() OVERRIDE; | 329 virtual bool RunImpl() OVERRIDE; |
330 | 330 |
331 void ResultCallback(const std::string& result); | 331 void ResultCallback(const std::string& result); |
332 void ErrorCallback(const std::string& error_name, const std::string& error); | 332 void ErrorCallback(const std::string& error_name, const std::string& error); |
333 | 333 |
334 private: | 334 private: |
335 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateVerifyAndEncryptDataFunction); | 335 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateVerifyAndEncryptDataFunction); |
336 }; | 336 }; |
337 | 337 |
| 338 // Implements the chrome.networkingPrivate.setWifiTDLSEnabledState method. |
| 339 class NetworkingPrivateSetWifiTDLSEnabledStateFunction |
| 340 : public ChromeAsyncExtensionFunction { |
| 341 public: |
| 342 NetworkingPrivateSetWifiTDLSEnabledStateFunction() {} |
| 343 DECLARE_EXTENSION_FUNCTION("networkingPrivate.setWifiTDLSEnabledState", |
| 344 NETWORKINGPRIVATE_SETWIFITDLSENABLEDSTATE); |
| 345 |
| 346 protected: |
| 347 virtual ~NetworkingPrivateSetWifiTDLSEnabledStateFunction(); |
| 348 |
| 349 // AsyncExtensionFunction overrides. |
| 350 virtual bool RunImpl() OVERRIDE; |
| 351 |
| 352 void Success(const std::string& result); |
| 353 void Failure(const std::string& error_name, |
| 354 scoped_ptr<base::DictionaryValue> error_data); |
| 355 |
| 356 private: |
| 357 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateSetWifiTDLSEnabledStateFunction); |
| 358 }; |
| 359 |
338 #endif // CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_A
PI_H_ | 360 #endif // CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_A
PI_H_ |
OLD | NEW |