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

Unified Diff: extensions/browser/api/vpn_provider/vpn_provider_api.h

Issue 671163002: Add new extension API for VPN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added an optional callback to methods in the idl Created 6 years, 1 month 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
« no previous file with comments | « extensions/browser/api/vpn_provider/OWNERS ('k') | extensions/browser/api/vpn_provider/vpn_provider_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/vpn_provider/vpn_provider_api.h
diff --git a/extensions/browser/api/vpn_provider/vpn_provider_api.h b/extensions/browser/api/vpn_provider/vpn_provider_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..fa44ef66fd05b9648acb5b1554c90c205667f4de
--- /dev/null
+++ b/extensions/browser/api/vpn_provider/vpn_provider_api.h
@@ -0,0 +1,69 @@
+// Copyright 2014 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_VPN_PROVIDER_VPN_PROVIDER_API_H_
+#define CHROME_BROWSER_EXTENSIONS_API_VPN_PROVIDER_VPN_PROVIDER_API_H_
+
+#include "extensions/browser/extension_function.h"
+
+namespace extensions {
+
+class VpnProviderCreateConfigFunction : public UIThreadExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("vpnProvider.createConfig",
+ VPNPROVIDER_CREATECONFIG);
+
+ protected:
+ virtual ~VpnProviderCreateConfigFunction();
+
+ virtual ExtensionFunction::ResponseAction Run() override;
+};
+
+class VpnProviderDestroyConfigFunction : public UIThreadExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("vpnProvider.destroyConfig",
+ VPNPROVIDER_DESTROYCONFIG);
+
+ protected:
+ virtual ~VpnProviderDestroyConfigFunction();
+
+ virtual ExtensionFunction::ResponseAction Run() override;
+};
+
+class VpnProviderSetParametersFunction : public UIThreadExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("vpnProvider.setParameters",
+ VPNPROVIDER_SETPARAMETERS);
+
+ protected:
+ virtual ~VpnProviderSetParametersFunction();
+
+ virtual ExtensionFunction::ResponseAction Run() override;
+};
+
+class VpnProviderSendPacketFunction : public UIThreadExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("vpnProvider.sendPacket", VPNPROVIDER_SENDPACKET);
+
+ protected:
+ virtual ~VpnProviderSendPacketFunction();
+
+ virtual ExtensionFunction::ResponseAction Run() override;
+};
+
+class VpnProviderNotifyConnectionStateChangedFunction
+ : public UIThreadExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("vpnProvider.notifyConnectionStateChanged",
+ VPNPROVIDER_NOTIFYCONNECTIONSTATECHANGED);
+
+ protected:
+ virtual ~VpnProviderNotifyConnectionStateChangedFunction();
+
+ virtual ExtensionFunction::ResponseAction Run() override;
+};
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_VPN_PROVIDER_VPN_PROVIDER_API_H_
« no previous file with comments | « extensions/browser/api/vpn_provider/OWNERS ('k') | extensions/browser/api/vpn_provider/vpn_provider_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698