Update {virtual,override,final} to follow C++11 style.
[chromium-blink-merge.git] / extensions / browser / api / vpn_provider / vpn_provider_api.h
blobc2384d607c762ee5e639d7d4a06b4dd2e7ace4a0
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.
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_VPN_PROVIDER_VPN_PROVIDER_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_VPN_PROVIDER_VPN_PROVIDER_API_H_
8 #include <string>
10 #include "extensions/browser/extension_function.h"
12 namespace extensions {
14 class VpnThreadExtensionFunction : public UIThreadExtensionFunction {
15 public:
16 void SignalCallCompletionSuccess();
18 void SignalCallCompletionFailure(const std::string& error_name,
19 const std::string& error_message);
21 protected:
22 ~VpnThreadExtensionFunction() override;
25 class VpnProviderCreateConfigFunction : public VpnThreadExtensionFunction {
26 public:
27 DECLARE_EXTENSION_FUNCTION("vpnProvider.createConfig",
28 VPNPROVIDER_CREATECONFIG);
30 protected:
31 ~VpnProviderCreateConfigFunction() override;
33 ExtensionFunction::ResponseAction Run() override;
36 class VpnProviderDestroyConfigFunction : public VpnThreadExtensionFunction {
37 public:
38 DECLARE_EXTENSION_FUNCTION("vpnProvider.destroyConfig",
39 VPNPROVIDER_DESTROYCONFIG);
41 protected:
42 ~VpnProviderDestroyConfigFunction() override;
44 ExtensionFunction::ResponseAction Run() override;
47 class VpnProviderSetParametersFunction : public VpnThreadExtensionFunction {
48 public:
49 DECLARE_EXTENSION_FUNCTION("vpnProvider.setParameters",
50 VPNPROVIDER_SETPARAMETERS);
52 protected:
53 ~VpnProviderSetParametersFunction() override;
55 ExtensionFunction::ResponseAction Run() override;
58 class VpnProviderSendPacketFunction : public VpnThreadExtensionFunction {
59 public:
60 DECLARE_EXTENSION_FUNCTION("vpnProvider.sendPacket", VPNPROVIDER_SENDPACKET);
62 protected:
63 ~VpnProviderSendPacketFunction() override;
65 ExtensionFunction::ResponseAction Run() override;
68 class VpnProviderNotifyConnectionStateChangedFunction
69 : public VpnThreadExtensionFunction {
70 public:
71 DECLARE_EXTENSION_FUNCTION("vpnProvider.notifyConnectionStateChanged",
72 VPNPROVIDER_NOTIFYCONNECTIONSTATECHANGED);
74 protected:
75 ~VpnProviderNotifyConnectionStateChangedFunction() override;
77 ExtensionFunction::ResponseAction Run() override;
80 } // namespace extensions
82 #endif // CHROME_BROWSER_EXTENSIONS_API_VPN_PROVIDER_VPN_PROVIDER_API_H_