| 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 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 const std::string& profile_path, | 83 const std::string& profile_path, |
| 84 Source source) override; | 84 Source source) override; |
| 85 | 85 |
| 86 // NetworkStateHandlerObserver: | 86 // NetworkStateHandlerObserver: |
| 87 void NetworkListChanged() override; | 87 void NetworkListChanged() override; |
| 88 | 88 |
| 89 // ExtensionRegistryObserver: | 89 // ExtensionRegistryObserver: |
| 90 void OnExtensionUninstalled(content::BrowserContext* browser_context, | 90 void OnExtensionUninstalled(content::BrowserContext* browser_context, |
| 91 const extensions::Extension* extension, | 91 const extensions::Extension* extension, |
| 92 extensions::UninstallReason reason) override; | 92 extensions::UninstallReason reason) override; |
| 93 void OnExtensionUnloaded( |
| 94 content::BrowserContext* browser_context, |
| 95 const extensions::Extension* extension, |
| 96 extensions::UnloadedExtensionInfo::Reason reason) override; |
| 93 | 97 |
| 94 // Creates a new VPN configuration with |configuration_name| as the name and | 98 // Creates a new VPN configuration with |configuration_name| as the name and |
| 95 // attaches it to the extension with id |extension_id|. | 99 // attaches it to the extension with id |extension_id|. |
| 96 // Calls |success| or |failure| based on the outcome. | 100 // Calls |success| or |failure| based on the outcome. |
| 97 void CreateConfiguration(const std::string& extension_id, | 101 void CreateConfiguration(const std::string& extension_id, |
| 98 const std::string& extension_name, | 102 const std::string& extension_name, |
| 99 const std::string& configuration_name, | 103 const std::string& configuration_name, |
| 100 const SuccessCallback& success, | 104 const SuccessCallback& success, |
| 101 const FailureCallback& failure); | 105 const FailureCallback& failure); |
| 102 | 106 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 StringToConfigurationMap service_path_to_configuration_map_; | 213 StringToConfigurationMap service_path_to_configuration_map_; |
| 210 | 214 |
| 211 base::WeakPtrFactory<VpnService> weak_factory_; | 215 base::WeakPtrFactory<VpnService> weak_factory_; |
| 212 | 216 |
| 213 DISALLOW_COPY_AND_ASSIGN(VpnService); | 217 DISALLOW_COPY_AND_ASSIGN(VpnService); |
| 214 }; | 218 }; |
| 215 | 219 |
| 216 } // namespace chromeos | 220 } // namespace chromeos |
| 217 | 221 |
| 218 #endif // EXTENSIONS_BROWSER_API_VPN_PROVIDER_VPN_SERVICE_H_ | 222 #endif // EXTENSIONS_BROWSER_API_VPN_PROVIDER_VPN_SERVICE_H_ |
| OLD | NEW |