OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_VPN_PROVIDER_VPN_PROVIDER_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_VPN_PROVIDER_VPN_PROVIDER_API_H_ |
| 7 |
| 8 #include "extensions/browser/extension_function.h" |
| 9 |
| 10 namespace extensions { |
| 11 namespace api { |
| 12 |
| 13 class VpnProviderCreateConfigFunction : public UIThreadExtensionFunction { |
| 14 public: |
| 15 DECLARE_EXTENSION_FUNCTION("vpnProvider.createConfig", |
| 16 VPNPROVIDER_CREATECONFIG); |
| 17 |
| 18 protected: |
| 19 virtual ~VpnProviderCreateConfigFunction(); |
| 20 |
| 21 virtual ExtensionFunction::ResponseAction Run() override; |
| 22 }; |
| 23 |
| 24 class VpnProviderDestroyConfigFunction : public UIThreadExtensionFunction { |
| 25 public: |
| 26 DECLARE_EXTENSION_FUNCTION("vpnProvider.destroyConfig", |
| 27 VPNPROVIDER_DESTROYCONFIG); |
| 28 |
| 29 protected: |
| 30 virtual ~VpnProviderDestroyConfigFunction(); |
| 31 |
| 32 virtual ExtensionFunction::ResponseAction Run() override; |
| 33 }; |
| 34 |
| 35 class VpnProviderSetParametersFunction : public UIThreadExtensionFunction { |
| 36 public: |
| 37 DECLARE_EXTENSION_FUNCTION("vpnProvider.setParameters", |
| 38 VPNPROVIDER_SETPARAMETERS); |
| 39 |
| 40 protected: |
| 41 virtual ~VpnProviderSetParametersFunction(); |
| 42 |
| 43 virtual ExtensionFunction::ResponseAction Run() override; |
| 44 }; |
| 45 |
| 46 class VpnProviderSendPacketFunction : public UIThreadExtensionFunction { |
| 47 public: |
| 48 DECLARE_EXTENSION_FUNCTION("vpnProvider.sendPacket", VPNPROVIDER_SENDPACKET); |
| 49 |
| 50 protected: |
| 51 virtual ~VpnProviderSendPacketFunction(); |
| 52 |
| 53 virtual ExtensionFunction::ResponseAction Run() override; |
| 54 }; |
| 55 |
| 56 class VpnProviderNotifyConnectionStateChangedFunction |
| 57 : public UIThreadExtensionFunction { |
| 58 public: |
| 59 DECLARE_EXTENSION_FUNCTION("vpnProvider.notifyConnectionStateChanged", |
| 60 VPNPROVIDER_NOTIFYCONNECTIONSTATECHANGED); |
| 61 |
| 62 protected: |
| 63 virtual ~VpnProviderNotifyConnectionStateChangedFunction(); |
| 64 |
| 65 virtual ExtensionFunction::ResponseAction Run() override; |
| 66 }; |
| 67 |
| 68 } // namespace api |
| 69 } // namespace extensions |
| 70 |
| 71 #endif // CHROME_BROWSER_EXTENSIONS_API_VPN_PROVIDER_VPN_PROVIDER_API_H_ |
OLD | NEW |