OLD | NEW |
---|---|
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_CHROMEOS_EXTENSIONS_NETWORKING_PRIVATE_API_H_ | 8 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_NETWORKING_PRIVATE_API_H_ |
9 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_NETWORKING_PRIVATE_API_H_ | 9 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_NETWORKING_PRIVATE_API_H_ |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... | |
30 virtual bool RunImpl() OVERRIDE; | 30 virtual bool RunImpl() OVERRIDE; |
31 | 31 |
32 private: | 32 private: |
33 void GetPropertiesSuccess(const std::string& service_path, | 33 void GetPropertiesSuccess(const std::string& service_path, |
34 const base::DictionaryValue& result); | 34 const base::DictionaryValue& result); |
35 void GetPropertiesFailed(const std::string& error_name, | 35 void GetPropertiesFailed(const std::string& error_name, |
36 scoped_ptr<base::DictionaryValue> error_data); | 36 scoped_ptr<base::DictionaryValue> error_data); |
37 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateGetPropertiesFunction); | 37 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateGetPropertiesFunction); |
38 }; | 38 }; |
39 | 39 |
40 // Implements the chrome.networkingPrivate.getManagedProperties method. | |
41 class NetworkingPrivateGetManagedPropertiesFunction | |
42 : public AsyncExtensionFunction { | |
43 public: | |
44 NetworkingPrivateGetManagedPropertiesFunction() {} | |
45 DECLARE_EXTENSION_FUNCTION("networkingPrivate.getManagedProperties", | |
46 NETWORKINGPRIVATE_GETMANAGEDPROPERTIES); | |
47 | |
48 protected: | |
49 virtual ~NetworkingPrivateGetManagedPropertiesFunction(); | |
50 | |
51 // AsyncExtensionFunction overrides. | |
52 virtual bool RunImpl() OVERRIDE; | |
53 | |
54 private: | |
55 // Callbacks if talking to ManagedNetworkConfigurationHandler. | |
pastarmovj
2013/04/11 14:46:29
This is a little vague - are those callbacks calle
stevenjb
2013/04/11 18:20:08
How about:
Callbacks for ManagedNetworkConfigurati
pneubeck (no reviews)
2013/04/15 12:16:24
Done.
pneubeck (no reviews)
2013/04/15 12:16:24
Done.
| |
56 void Success(const std::string& service_path, | |
57 const base::DictionaryValue& result); | |
58 void Failure(const std::string& error_name, | |
59 scoped_ptr<base::DictionaryValue> error_data); | |
stevenjb
2013/04/11 18:20:08
nit: blank line
pneubeck (no reviews)
2013/04/15 12:16:24
Done.
| |
60 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateGetManagedPropertiesFunction); | |
61 }; | |
62 | |
40 // Implements the chrome.networkingPrivate.getState method. | 63 // Implements the chrome.networkingPrivate.getState method. |
41 class NetworkingPrivateGetStateFunction : public AsyncExtensionFunction { | 64 class NetworkingPrivateGetStateFunction : public AsyncExtensionFunction { |
42 public: | 65 public: |
43 NetworkingPrivateGetStateFunction() {} | 66 NetworkingPrivateGetStateFunction() {} |
44 DECLARE_EXTENSION_FUNCTION("networkingPrivate.getState", | 67 DECLARE_EXTENSION_FUNCTION("networkingPrivate.getState", |
45 NETWORKINGPRIVATE_GETSTATE); | 68 NETWORKINGPRIVATE_GETSTATE); |
46 | 69 |
47 protected: | 70 protected: |
48 virtual ~NetworkingPrivateGetStateFunction(); | 71 virtual ~NetworkingPrivateGetStateFunction(); |
49 | 72 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
201 virtual bool RunImpl() OVERRIDE; | 224 virtual bool RunImpl() OVERRIDE; |
202 | 225 |
203 void ResultCallback(const std::string& result); | 226 void ResultCallback(const std::string& result); |
204 void ErrorCallback(const std::string& error_name, const std::string& error); | 227 void ErrorCallback(const std::string& error_name, const std::string& error); |
205 | 228 |
206 private: | 229 private: |
207 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateVerifyAndEncryptDataFunction); | 230 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateVerifyAndEncryptDataFunction); |
208 }; | 231 }; |
209 | 232 |
210 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_NETWORKING_PRIVATE_API_H_ | 233 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_NETWORKING_PRIVATE_API_H_ |
OLD | NEW |