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

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

Issue 17029002: Change the permission check for Pepper socket API to support both the public and private APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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: 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 100909b61f6e301d0f92f39d88e7d9dedfa2f66f..eb9fc4100d81e8d404018b7e8a2cfed2e5db16c9 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -509,10 +509,13 @@ class CONTENT_EXPORT ContentBrowserClient {
virtual bool SupportsBrowserPlugin(BrowserContext* browser_context,
const GURL& site_url);
- // Returns true if renderer processes can use Pepper TCP/UDP sockets from
- // the given origin and connection type.
+ // Returns true if the socket operation specified by |params| is allowed
+ // from the given |browser_context| and |url|. |private_api| indicates whether
+ // this permission check is for the private Pepper socket API or the public
+ // one.
virtual bool AllowPepperSocketAPI(BrowserContext* browser_context,
const GURL& url,
+ bool private_api,
const SocketPermissionRequest& params);
// Returns the directory containing hyphenation dictionaries.

Powered by Google App Engine
This is Rietveld 408576698