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

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

Issue 219333002: Added method getCaptivePortalStatus to networkingPrivate extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 8 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 // 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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 virtual bool RunImpl() OVERRIDE; 372 virtual bool RunImpl() OVERRIDE;
373 373
374 void Success(const std::string& result); 374 void Success(const std::string& result);
375 void Failure(const std::string& error_name, 375 void Failure(const std::string& error_name,
376 scoped_ptr<base::DictionaryValue> error_data); 376 scoped_ptr<base::DictionaryValue> error_data);
377 377
378 private: 378 private:
379 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateGetWifiTDLSStatusFunction); 379 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateGetWifiTDLSStatusFunction);
380 }; 380 };
381 381
382 class NetworkingPrivateGetCaptivePortalStatusFunction
383 : public ChromeAsyncExtensionFunction {
384 public:
385 NetworkingPrivateGetCaptivePortalStatusFunction() {}
386 DECLARE_EXTENSION_FUNCTION("networkingPrivate.getCaptivePortalStatus",
387 NETWORKINGPRIVATE_GETCAPTIVEPORTALSTATUS);
388
389 // AsyncExtensionFunction overrides.
390 virtual bool RunImpl() OVERRIDE;
391
392 protected:
393 virtual ~NetworkingPrivateGetCaptivePortalStatusFunction();
394
395 private:
396 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateGetCaptivePortalStatusFunction);
397 };
398
382 #endif // CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_A PI_H_ 399 #endif // CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_A PI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698