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

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

Issue 1922873005: ppapi: PPB_VpnProvider: Bind VpnService to the PPAPI Resource Host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@vpn-api-resource-host
Patch Set: Remove redundant code. Created 4 years, 6 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
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 b439a3e255e76af55508eef055293715dc2be8db..664c0cc538dfe5b06d76494ae89e7f1a41e060c2 100644
--- a/extensions/browser/api/vpn_provider/vpn_service.h
+++ b/extensions/browser/api/vpn_provider/vpn_service.h
@@ -30,6 +30,8 @@ class ListValue;
namespace content {
class BrowserContext;
+class PepperVpnProviderResourceHostProxy;
+class VpnServiceProxy;
} // namespace content
@@ -162,8 +164,13 @@ class VpnService : public KeyedService,
static std::string GetKey(const std::string& extension_id,
const std::string& configuration_name);
+ // Creates a new VpnServiceProxy. The caller owns the returned value. It's
+ // valid to return nullptr.
+ std::unique_ptr<content::VpnServiceProxy> GetVpnServiceProxy();
+
private:
class VpnConfiguration;
+ class VpnServiceProxyImpl;
using StringToConfigurationMap = std::map<std::string, VpnConfiguration*>;
@@ -226,6 +233,14 @@ class VpnService : public KeyedService,
// Set the active configuration.
void SetActiveConfiguration(VpnConfiguration* configuration);
+ void Bind(const std::string& extension_id,
+ const std::string& configuration_id,
+ const std::string& configuration_name,
+ const SuccessCallback& success,
+ const FailureCallback& failure,
+ std::unique_ptr<content::PepperVpnProviderResourceHostProxy>
+ pepper_vpn_provider_proxy);
+
content::BrowserContext* browser_context_;
std::string userid_hash_;

Powered by Google App Engine
This is Rietveld 408576698