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 #ifndef CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_
H_ | 5 #ifndef EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_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 |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 protected: | 231 protected: |
232 ~NetworkingPrivateRequestNetworkScanFunction() override; | 232 ~NetworkingPrivateRequestNetworkScanFunction() override; |
233 | 233 |
234 // SyncExtensionFunction overrides. | 234 // SyncExtensionFunction overrides. |
235 bool RunSync() override; | 235 bool RunSync() override; |
236 | 236 |
237 private: | 237 private: |
238 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateRequestNetworkScanFunction); | 238 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateRequestNetworkScanFunction); |
239 }; | 239 }; |
240 | 240 |
241 | |
242 // Implements the chrome.networkingPrivate.startConnect method. | 241 // Implements the chrome.networkingPrivate.startConnect method. |
243 class NetworkingPrivateStartConnectFunction : public AsyncExtensionFunction { | 242 class NetworkingPrivateStartConnectFunction : public AsyncExtensionFunction { |
244 public: | 243 public: |
245 NetworkingPrivateStartConnectFunction() {} | 244 NetworkingPrivateStartConnectFunction() {} |
246 DECLARE_EXTENSION_FUNCTION("networkingPrivate.startConnect", | 245 DECLARE_EXTENSION_FUNCTION("networkingPrivate.startConnect", |
247 NETWORKINGPRIVATE_STARTCONNECT); | 246 NETWORKINGPRIVATE_STARTCONNECT); |
248 | 247 |
249 protected: | 248 protected: |
250 ~NetworkingPrivateStartConnectFunction() override; | 249 ~NetworkingPrivateStartConnectFunction() override; |
251 | 250 |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 | 399 |
401 private: | 400 private: |
402 void Success(const std::string& result); | 401 void Success(const std::string& result); |
403 void Failure(const std::string& error); | 402 void Failure(const std::string& error); |
404 | 403 |
405 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateGetCaptivePortalStatusFunction); | 404 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateGetCaptivePortalStatusFunction); |
406 }; | 405 }; |
407 | 406 |
408 } // namespace extensions | 407 } // namespace extensions |
409 | 408 |
410 #endif // CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_A
PI_H_ | 409 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_H_ |
OLD | NEW |