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

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

Issue 1226353004: Generate all extension schema namespaces as "api" and instead vary the generated bundle names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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
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 EXTENSIONS_BROWSER_API_VPN_PROVIDER_VPN_SERVICE_H_ 5 #ifndef EXTENSIONS_BROWSER_API_VPN_PROVIDER_VPN_SERVICE_H_
6 #define EXTENSIONS_BROWSER_API_VPN_PROVIDER_VPN_SERVICE_H_ 6 #define EXTENSIONS_BROWSER_API_VPN_PROVIDER_VPN_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 void SendPacket(const std::string& extension_id, 137 void SendPacket(const std::string& extension_id,
138 const std::vector<char>& data, 138 const std::vector<char>& data,
139 const SuccessCallback& success, 139 const SuccessCallback& success,
140 const FailureCallback& failure); 140 const FailureCallback& failure);
141 141
142 // Notifies connection state |state| to the active VPN configuration after 142 // Notifies connection state |state| to the active VPN configuration after
143 // verifying that it belongs to the extension with id |extension_id|. 143 // verifying that it belongs to the extension with id |extension_id|.
144 // Calls |success| or |failure| based on the outcome. 144 // Calls |success| or |failure| based on the outcome.
145 void NotifyConnectionStateChanged( 145 void NotifyConnectionStateChanged(
146 const std::string& extension_id, 146 const std::string& extension_id,
147 extensions::core_api::vpn_provider::VpnConnectionState state, 147 extensions::api::vpn_provider::VpnConnectionState state,
148 const SuccessCallback& success, 148 const SuccessCallback& success,
149 const FailureCallback& failure); 149 const FailureCallback& failure);
150 150
151 // Verifies if a configuration with name |configuration_name| exists for the 151 // Verifies if a configuration with name |configuration_name| exists for the
152 // extension with id |extension_id|. 152 // extension with id |extension_id|.
153 bool VerifyConfigExistsForTesting(const std::string& extension_id, 153 bool VerifyConfigExistsForTesting(const std::string& extension_id,
154 const std::string& configuration_name); 154 const std::string& configuration_name);
155 155
156 // Verifies if the extension has a configuration that is connected. 156 // Verifies if the extension has a configuration that is connected.
157 bool VerifyConfigIsConnectedForTesting(const std::string& extension_id); 157 bool VerifyConfigIsConnectedForTesting(const std::string& extension_id);
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 StringToConfigurationMap service_path_to_configuration_map_; 243 StringToConfigurationMap service_path_to_configuration_map_;
244 244
245 base::WeakPtrFactory<VpnService> weak_factory_; 245 base::WeakPtrFactory<VpnService> weak_factory_;
246 246
247 DISALLOW_COPY_AND_ASSIGN(VpnService); 247 DISALLOW_COPY_AND_ASSIGN(VpnService);
248 }; 248 };
249 249
250 } // namespace chromeos 250 } // namespace chromeos
251 251
252 #endif // EXTENSIONS_BROWSER_API_VPN_PROVIDER_VPN_SERVICE_H_ 252 #endif // EXTENSIONS_BROWSER_API_VPN_PROVIDER_VPN_SERVICE_H_
OLDNEW
« no previous file with comments | « extensions/browser/api/vpn_provider/vpn_provider_api.cc ('k') | extensions/browser/api/vpn_provider/vpn_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698