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

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

Issue 22295002: Base infrastructure for Networking Private API on Windows and Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed compilation error. Created 7 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 | 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 private: 94 private:
95 void ErrorCallback(const std::string& error_name, 95 void ErrorCallback(const std::string& error_name,
96 const scoped_ptr<base::DictionaryValue> error_data); 96 const scoped_ptr<base::DictionaryValue> error_data);
97 void ResultCallback(); 97 void ResultCallback();
98 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateSetPropertiesFunction); 98 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateSetPropertiesFunction);
99 }; 99 };
100 100
101 // Implements the chrome.networkingPrivate.getVisibleNetworks method. 101 // Implements the chrome.networkingPrivate.getVisibleNetworks method.
102 class NetworkingPrivateGetVisibleNetworksFunction 102 class NetworkingPrivateGetVisibleNetworksFunction
103 : public SyncExtensionFunction { 103 : public AsyncExtensionFunction {
104 public: 104 public:
105 NetworkingPrivateGetVisibleNetworksFunction() {} 105 NetworkingPrivateGetVisibleNetworksFunction() {}
106 DECLARE_EXTENSION_FUNCTION("networkingPrivate.getVisibleNetworks", 106 DECLARE_EXTENSION_FUNCTION("networkingPrivate.getVisibleNetworks",
107 NETWORKINGPRIVATE_GETVISIBLENETWORKS); 107 NETWORKINGPRIVATE_GETVISIBLENETWORKS);
108 108
109 protected: 109 protected:
110 virtual ~NetworkingPrivateGetVisibleNetworksFunction(); 110 virtual ~NetworkingPrivateGetVisibleNetworksFunction();
111 111
112 // SyncExtensionFunction overrides. 112 // AsyncExtensionFunction overrides.
113 virtual bool RunImpl() OVERRIDE; 113 virtual bool RunImpl() OVERRIDE;
114 114
115 private: 115 private:
116 void ResultCallback(const base::ListValue& network_list);
stevenjb 2013/08/13 23:39:04 Unused?
mef 2013/08/21 17:25:34 It is used in nonchromeos implementation.
117
116 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateGetVisibleNetworksFunction); 118 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateGetVisibleNetworksFunction);
117 }; 119 };
118 120
119 // Implements the chrome.networkingPrivate.requestNetworkScan method. 121 // Implements the chrome.networkingPrivate.requestNetworkScan method.
120 class NetworkingPrivateRequestNetworkScanFunction 122 class NetworkingPrivateRequestNetworkScanFunction
121 : public SyncExtensionFunction { 123 : public SyncExtensionFunction {
122 public: 124 public:
123 NetworkingPrivateRequestNetworkScanFunction() {} 125 NetworkingPrivateRequestNetworkScanFunction() {}
124 DECLARE_EXTENSION_FUNCTION("networkingPrivate.requestNetworkScan", 126 DECLARE_EXTENSION_FUNCTION("networkingPrivate.requestNetworkScan",
125 NETWORKINGPRIVATE_REQUESTNETWORKSCAN); 127 NETWORKINGPRIVATE_REQUESTNETWORKSCAN);
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 247
246 void ResultCallback(const std::string& result); 248 void ResultCallback(const std::string& result);
247 void ErrorCallback(const std::string& error_name, const std::string& error); 249 void ErrorCallback(const std::string& error_name, const std::string& error);
248 250
249 private: 251 private:
250 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateVerifyAndEncryptDataFunction); 252 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateVerifyAndEncryptDataFunction);
251 }; 253 };
252 254
253 #endif // CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_A PI_H_ 255 #endif // CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_A PI_H_
254 256
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698