Chromium Code Reviews| Index: extensions/browser/api/networking_config/networking_config_api.h |
| diff --git a/extensions/browser/api/networking_config/networking_config_api.h b/extensions/browser/api/networking_config/networking_config_api.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..579d95e18ccc651337654bbf051a61bc791356e5 |
| --- /dev/null |
| +++ b/extensions/browser/api/networking_config/networking_config_api.h |
| @@ -0,0 +1,53 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_EXTENSIONS_API_NETWORKING_CONFIG_NETWORKING_CONFIG_API_H_ |
| +#define CHROME_BROWSER_EXTENSIONS_API_NETWORKING_CONFIG_NETWORKING_CONFIG_API_H_ |
|
stevenjb
2015/01/29 17:51:35
Update guards
cschuet (SLOW)
2015/01/30 12:33:34
Done.
|
| + |
| +#include "extensions/common/api/networking_config.h" |
| +#include "extensions/browser/extension_function.h" |
| + |
| +namespace extensions { |
| + |
| +class NetworkingConfigSetNetworkFilterFunction |
| + : public UIThreadExtensionFunction { |
| + public: |
| + NetworkingConfigSetNetworkFilterFunction(); |
| + |
| + ResponseAction Run() override; |
| + |
| + DECLARE_EXTENSION_FUNCTION("networking.config.setNetworkFilter", |
| + NETWORKING_CONFIG_SETNETWORKFILTER); |
| + |
| + protected: |
| + ~NetworkingConfigSetNetworkFilterFunction() override; |
| + |
| + scoped_ptr<core_api::networking_config::SetNetworkFilter::Params> |
| + parameters_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(NetworkingConfigSetNetworkFilterFunction); |
| +}; |
| + |
| +class NetworkingConfigFinishAuthenticationFunction |
| + : public UIThreadExtensionFunction { |
| + public: |
| + NetworkingConfigFinishAuthenticationFunction(); |
| + |
| + ResponseAction Run() override; |
| + |
| + DECLARE_EXTENSION_FUNCTION("networking.config.finishAuthenticationFunction", |
| + NETWORKING_CONFIG_FINISHAUTHENTICATION); |
| + |
| + protected: |
| + ~NetworkingConfigFinishAuthenticationFunction() override; |
| + |
| + scoped_ptr<core_api::networking_config::FinishAuthentication::Params> |
| + parameters_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(NetworkingConfigFinishAuthenticationFunction); |
| +}; |
| + |
| +} // namespace extensions |
| + |
| +#endif // CHROME_BROWSER_EXTENSIONS_API_NETWORKING_CONFIG_NETWORKING_CONFIG_API_H_ |