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

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

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Rebase Created 3 years, 7 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 <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 const std::string& profile_path, 96 const std::string& profile_path,
97 Source source) override; 97 Source source) override;
98 98
99 // NetworkStateHandlerObserver: 99 // NetworkStateHandlerObserver:
100 void NetworkListChanged() override; 100 void NetworkListChanged() override;
101 101
102 // ExtensionRegistryObserver: 102 // ExtensionRegistryObserver:
103 void OnExtensionUninstalled(content::BrowserContext* browser_context, 103 void OnExtensionUninstalled(content::BrowserContext* browser_context,
104 const extensions::Extension* extension, 104 const extensions::Extension* extension,
105 extensions::UninstallReason reason) override; 105 extensions::UninstallReason reason) override;
106 void OnExtensionUnloaded( 106 void OnExtensionUnloaded(content::BrowserContext* browser_context,
107 content::BrowserContext* browser_context, 107 const extensions::Extension* extension,
108 const extensions::Extension* extension, 108 extensions::UnloadedExtensionReason reason) override;
109 extensions::UnloadedExtensionInfo::Reason reason) override;
110 109
111 // Creates a new VPN configuration with |configuration_name| as the name and 110 // Creates a new VPN configuration with |configuration_name| as the name and
112 // attaches it to the extension with id |extension_id|. 111 // attaches it to the extension with id |extension_id|.
113 // Calls |success| or |failure| based on the outcome. 112 // Calls |success| or |failure| based on the outcome.
114 void CreateConfiguration(const std::string& extension_id, 113 void CreateConfiguration(const std::string& extension_id,
115 const std::string& extension_name, 114 const std::string& extension_name,
116 const std::string& configuration_name, 115 const std::string& configuration_name,
117 const SuccessCallback& success, 116 const SuccessCallback& success,
118 const FailureCallback& failure); 117 const FailureCallback& failure);
119 118
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 StringToConfigurationMap service_path_to_configuration_map_; 260 StringToConfigurationMap service_path_to_configuration_map_;
262 261
263 base::WeakPtrFactory<VpnService> weak_factory_; 262 base::WeakPtrFactory<VpnService> weak_factory_;
264 263
265 DISALLOW_COPY_AND_ASSIGN(VpnService); 264 DISALLOW_COPY_AND_ASSIGN(VpnService);
266 }; 265 };
267 266
268 } // namespace chromeos 267 } // namespace chromeos
269 268
270 #endif // EXTENSIONS_BROWSER_API_VPN_PROVIDER_VPN_SERVICE_H_ 269 #endif // EXTENSIONS_BROWSER_API_VPN_PROVIDER_VPN_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698