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

Unified Diff: extensions/browser/api/vpn_provider/vpn_service.h

Issue 1307173009: rebased ppapi vpnProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: fix compile Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/browser/api/vpn_provider/DEPS ('k') | extensions/browser/api/vpn_provider/vpn_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/vpn_provider/vpn_service.h
diff --git a/extensions/browser/api/vpn_provider/vpn_service.h b/extensions/browser/api/vpn_provider/vpn_service.h
index 7aa1dc212ad67944b334dd796ba602a3e67c6b64..1595d24c8e8d7004672b26edbf374ce5abc492b3 100644
--- a/extensions/browser/api/vpn_provider/vpn_service.h
+++ b/extensions/browser/api/vpn_provider/vpn_service.h
@@ -162,6 +162,9 @@ class VpnService : public KeyedService,
static std::string GetKey(const std::string& extension_id,
const std::string& configuration_name);
+ void AddPlugin(const std::string& service_id);
+ void RemovePlugin(const std::string& service_id);
+
private:
class VpnConfiguration;
@@ -224,6 +227,9 @@ class VpnService : public KeyedService,
// Set the active configuration.
void SetActiveConfiguration(VpnConfiguration* configuration);
+ // Check if the service_id was registered via PPAPI
+ bool RegisteredViaPlugin(const std::string& service_id);
+
content::BrowserContext* browser_context_;
std::string userid_hash_;
@@ -242,6 +248,8 @@ class VpnService : public KeyedService,
// Service path does not own the VpnConfigurations.
StringToConfigurationMap service_path_to_configuration_map_;
+ std::set<std::string> pepper_plugin_set_;
+
base::WeakPtrFactory<VpnService> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(VpnService);
« no previous file with comments | « extensions/browser/api/vpn_provider/DEPS ('k') | extensions/browser/api/vpn_provider/vpn_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698