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

Unified Diff: content/public/browser/content_browser_client.h

Issue 10993078: Use extensions socket permission for TCP/UDP socket APIs in Pepper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove duplication Created 8 years, 2 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: content/public/browser/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index a861b70b5ee7fe4ef5234834c4cf9752c5a965d5..37900af43572c584c3902134f050e8def7678308 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -11,6 +11,7 @@
#include "base/callback_forward.h"
#include "content/public/browser/file_descriptor_info.h"
+#include "content/public/browser/socket_permission_request.h"
#include "content/public/common/content_client.h"
#include "content/public/common/window_container_type.h"
#include "net/cookies/canonical_cookie.h"
@@ -442,9 +443,10 @@ class CONTENT_EXPORT ContentBrowserClient {
virtual void DidCreatePpapiPlugin(BrowserPpapiHost* browser_host) {}
// Returns true if renderer processes can use Pepper TCP/UDP sockets from
- // the given origin.
+ // the given origin and connection type.
virtual bool AllowPepperSocketAPI(BrowserContext* browser_context,
- const GURL& url);
+ const GURL& url,
+ const SocketPermissionRequest& params);
// Returns true if renderer processes can use private Pepper File APIs.
virtual bool AllowPepperPrivateFileAPI();

Powered by Google App Engine
This is Rietveld 408576698