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

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: fixed Android build Created 8 years, 1 month 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 07a05aaf62beab8ac863d64937760cea9972c957..189339e8e5e038a0a5ecd4ea0588a9ec94320a13 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/common/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"
@@ -441,9 +442,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();
« no previous file with comments | « content/browser/renderer_host/pepper/pepper_udp_socket.h ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698