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

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

Issue 1283613005: Add networkingPrivate.getThirdPartyVpnProviderList (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_515987_cr_network_list
Patch Set: Rebase Created 5 years, 4 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
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 EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_H_ 5 #ifndef EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_H_
6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_H_ 6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "extensions/browser/extension_function.h" 13 #include "extensions/browser/extension_function.h"
14 14
15 namespace extensions { 15 namespace extensions {
16 16
17 namespace networking_private { 17 namespace networking_private {
18 18
19 extern const int kDefaultNetworkListLimit;
19 extern const char kErrorInvalidNetworkGuid[]; 20 extern const char kErrorInvalidNetworkGuid[];
20 extern const char kErrorInvalidNetworkOperation[]; 21 extern const char kErrorInvalidNetworkOperation[];
21 extern const char kErrorNetworkUnavailable[]; 22 extern const char kErrorNetworkUnavailable[];
22 extern const char kErrorEncryptionError[]; 23 extern const char kErrorEncryptionError[];
23 extern const char kErrorNotReady[]; 24 extern const char kErrorNotReady[];
24 extern const char kErrorNotSupported[]; 25 extern const char kErrorNotSupported[];
25 extern const char kErrorSimLocked[]; 26 extern const char kErrorSimLocked[];
26 27
27 } // namespace networking_private 28 } // namespace networking_private
28 29
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 protected: 497 protected:
497 ~NetworkingPrivateSetCellularSimStateFunction() override; 498 ~NetworkingPrivateSetCellularSimStateFunction() override;
498 499
499 private: 500 private:
500 void Success(); 501 void Success();
501 void Failure(const std::string& error); 502 void Failure(const std::string& error);
502 503
503 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateSetCellularSimStateFunction); 504 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateSetCellularSimStateFunction);
504 }; 505 };
505 506
507 // Implements the chrome.networkingPrivate.getThirdPartyVPNProviders method.
508 class NetworkingPrivateGetThirdPartyVPNProvidersFunction
509 : public AsyncExtensionFunction {
510 public:
511 NetworkingPrivateGetThirdPartyVPNProvidersFunction() {}
512 DECLARE_EXTENSION_FUNCTION("networkingPrivate.getThirdPartyVPNProviders",
513 NETWORKINGPRIVATE_GETTHIRDPARTYVPNPROVIDERS);
514
515 protected:
516 ~NetworkingPrivateGetThirdPartyVPNProvidersFunction() override;
517
518 // AsyncExtensionFunction overrides.
519 bool RunAsync() override;
520
521 private:
522 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateGetThirdPartyVPNProvidersFunction);
523 };
524
506 } // namespace extensions 525 } // namespace extensions
507 526
508 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_H_ 527 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698