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

Unified Diff: extensions/browser/api/networking_config/networking_config_api.h

Issue 880073002: Networking.config: Implementation of the NetworkingConfigService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adressed comments by kalman, stevenjb and asvitkine Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
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..863fb08a2627fde93a3b00aef73c9f8c05119edd
--- /dev/null
+++ b/extensions/browser/api/networking_config/networking_config_api.h
@@ -0,0 +1,55 @@
+// 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 EXTENSIONS_BROWSER_API_NETWORKING_CONFIG_NETWORKING_CONFIG_API_H_
+#define EXTENSIONS_BROWSER_API_NETWORKING_CONFIG_NETWORKING_CONFIG_API_H_
+
+#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_;
+
+ private:
+ 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_;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(NetworkingConfigFinishAuthenticationFunction);
+};
+
+} // namespace extensions
+
+#endif // EXTENSIONS_BROWSER_API_NETWORKING_CONFIG_NETWORKING_CONFIG_API_H_

Powered by Google App Engine
This is Rietveld 408576698