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

Side by Side Diff: chrome/browser/extensions/api/networking_private/networking_private_api.h

Issue 156353002: Implement networkingPrivate.setWifiTDLSEnabledState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable TDLS tests on non-chromeos 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/networking_private/networking_private_api_chromeos.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 // 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
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
360 // Implements the chrome.networkingPrivate.getWifiTDLSStatus method.
361 class NetworkingPrivateGetWifiTDLSStatusFunction
362 : public ChromeAsyncExtensionFunction {
363 public:
364 NetworkingPrivateGetWifiTDLSStatusFunction() {}
365 DECLARE_EXTENSION_FUNCTION("networkingPrivate.getWifiTDLSStatus",
366 NETWORKINGPRIVATE_GETWIFITDLSSTATUS);
367
368 protected:
369 virtual ~NetworkingPrivateGetWifiTDLSStatusFunction();
370
371 // AsyncExtensionFunction overrides.
372 virtual bool RunImpl() OVERRIDE;
373
374 void Success(const std::string& result);
375 void Failure(const std::string& error_name,
376 scoped_ptr<base::DictionaryValue> error_data);
377
378 private:
379 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateGetWifiTDLSStatusFunction);
380 };
381
338 #endif // CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_A PI_H_ 382 #endif // CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_A PI_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/networking_private/networking_private_api_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698