OLD | NEW |
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 |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "chrome/browser/extensions/chrome_extension_function.h" | 15 #include "chrome/browser/extensions/chrome_extension_function.h" |
16 #include "chromeos/dbus/dbus_method_call_status.h" | 16 #include "chromeos/dbus/dbus_method_call_status.h" |
17 #include "components/browser_context_keyed_service/browser_context_keyed_service
.h" | 17 #include "components/keyed_service/core/keyed_service.h" |
18 | 18 |
19 // Implements the chrome.networkingPrivate.getProperties method. | 19 // Implements the chrome.networkingPrivate.getProperties method. |
20 class NetworkingPrivateGetPropertiesFunction | 20 class NetworkingPrivateGetPropertiesFunction |
21 : public ChromeAsyncExtensionFunction { | 21 : public ChromeAsyncExtensionFunction { |
22 public: | 22 public: |
23 NetworkingPrivateGetPropertiesFunction() {} | 23 NetworkingPrivateGetPropertiesFunction() {} |
24 DECLARE_EXTENSION_FUNCTION("networkingPrivate.getProperties", | 24 DECLARE_EXTENSION_FUNCTION("networkingPrivate.getProperties", |
25 NETWORKINGPRIVATE_GETPROPERTIES); | 25 NETWORKINGPRIVATE_GETPROPERTIES); |
26 | 26 |
27 protected: | 27 protected: |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 #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_ |
OLD | NEW |