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

Unified Diff: content/child/resource_dispatcher.h

Issue 23842002: Whitelisting exts and plugins from cross-site document blocking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Comments & Coding style are improved. Created 7 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 | « chrome/renderer/chrome_content_renderer_client.cc ('k') | content/child/resource_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/resource_dispatcher.h
diff --git a/content/child/resource_dispatcher.h b/content/child/resource_dispatcher.h
index 465a0a3e18b05de297b568333a8eac0280e50d37..f9d0f03d22d86f539160e77dc3daeb3193628e52 100644
--- a/content/child/resource_dispatcher.h
+++ b/content/child/resource_dispatcher.h
@@ -45,6 +45,7 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Listener {
// requests' ID
int AddPendingRequest(webkit_glue::ResourceLoaderBridge::Peer* callback,
ResourceType::Type resource_type,
+ int origin_pid,
const GURL& frame_origin,
const GURL& request_url);
@@ -86,6 +87,7 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Listener {
PendingRequestInfo(webkit_glue::ResourceLoaderBridge::Peer* peer,
ResourceType::Type resource_type,
+ int origin_pid,
const GURL& frame_origin,
const GURL& request_url);
@@ -93,6 +95,10 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Listener {
webkit_glue::ResourceLoaderBridge::Peer* peer;
ResourceType::Type resource_type;
+ // The PID of the original process which issued this request. This gets
+ // non-zero only for a request proxied by another renderer, particularly
+ // requests from plugins.
+ int origin_pid;
MessageQueue deferred_message_queue;
bool is_deferred;
// Original requested url.
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | content/child/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698