OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_VPN_PROVIDER_VPN_PROVIDER_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_VPN_PROVIDER_VPN_PROVIDER_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_VPN_PROVIDER_VPN_PROVIDER_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_VPN_PROVIDER_VPN_PROVIDER_API_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "extensions/browser/extension_function.h" | 10 #include "extensions/browser/extension_function.h" |
11 | 11 |
12 namespace extensions { | 12 namespace extensions { |
13 | 13 |
14 class VpnThreadExtensionFunction : public UIThreadExtensionFunction { | 14 class VpnThreadExtensionFunction : public UIThreadExtensionFunction { |
15 public: | 15 public: |
16 void SignalCallCompletionSuccess(); | 16 void SignalCallCompletionSuccess(); |
| 17 void SignalCallCompletionSuccessWithId(const std::string& configuration_id); |
17 | 18 |
18 void SignalCallCompletionFailure(const std::string& error_name, | 19 void SignalCallCompletionFailure(const std::string& error_name, |
19 const std::string& error_message); | 20 const std::string& error_message); |
20 | 21 |
21 protected: | 22 protected: |
22 ~VpnThreadExtensionFunction() override; | 23 ~VpnThreadExtensionFunction() override; |
23 }; | 24 }; |
24 | 25 |
25 class VpnProviderCreateConfigFunction : public VpnThreadExtensionFunction { | 26 class VpnProviderCreateConfigFunction : public VpnThreadExtensionFunction { |
26 public: | 27 public: |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 74 |
74 protected: | 75 protected: |
75 ~VpnProviderNotifyConnectionStateChangedFunction() override; | 76 ~VpnProviderNotifyConnectionStateChangedFunction() override; |
76 | 77 |
77 ExtensionFunction::ResponseAction Run() override; | 78 ExtensionFunction::ResponseAction Run() override; |
78 }; | 79 }; |
79 | 80 |
80 } // namespace extensions | 81 } // namespace extensions |
81 | 82 |
82 #endif // CHROME_BROWSER_EXTENSIONS_API_VPN_PROVIDER_VPN_PROVIDER_API_H_ | 83 #endif // CHROME_BROWSER_EXTENSIONS_API_VPN_PROVIDER_VPN_PROVIDER_API_H_ |
OLD | NEW |