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

Side by Side Diff: extensions/browser/api/vpn_provider/vpn_provider_api.h

Issue 999783002: Extend vpnProvider API to support future enhancements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added documentation for UI events Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | extensions/browser/api/vpn_provider/vpn_provider_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | extensions/browser/api/vpn_provider/vpn_provider_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698