diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-16 19:58:08 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-16 19:58:08 +0000 |
commit | 5b35a6be09ab4a22ed9c5e0a073463a2ef630ec5 (patch) | |
tree | 00bdf30d37b70e4f3b027c7a5dc49784e08be98b /webkit/glue/resource_loader_bridge.h | |
parent | 65e9cdbe8cf977e04bc264fe6d70cc5b2b0242a1 (diff) | |
download | chromium_src-5b35a6be09ab4a22ed9c5e0a073463a2ef630ec5.zip chromium_src-5b35a6be09ab4a22ed9c5e0a073463a2ef630ec5.tar.gz chromium_src-5b35a6be09ab4a22ed9c5e0a073463a2ef630ec5.tar.bz2 |
Get rid of stashing a frame pointer with ResourceRequest and just store the routing id directly. This simplifies the renderer code and also allow this code to be used in worker processes, where we don't have a frame.
Review URL: http://codereview.chromium.org/46026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11763 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/resource_loader_bridge.h')
-rw-r--r-- | webkit/glue/resource_loader_bridge.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/webkit/glue/resource_loader_bridge.h b/webkit/glue/resource_loader_bridge.h index bd5ad42..482ca84 100644 --- a/webkit/glue/resource_loader_bridge.h +++ b/webkit/glue/resource_loader_bridge.h @@ -144,9 +144,6 @@ class ResourceLoaderBridge { // the standard MIME header encoding rules. The headers parameter can also // be null if no extra request headers need to be set. // - // The WebFrame passed to this function provides context about the origin - // of the resource request. - // // policy_url is the URL of the document in the top-level window, which may be // checked by the third-party cookie blocking policy. // @@ -157,16 +154,19 @@ class ResourceLoaderBridge { // // request_type indicates if the current request is the main frame load, a // sub-frame load, or a sub objects load. - static ResourceLoaderBridge* Create(WebFrame* frame, - const std::string& method, + // + // routing_id passed to this function allows it to be associated with a + // frame's network context. + static ResourceLoaderBridge* Create(const std::string& method, const GURL& url, const GURL& policy_url, const GURL& referrer, const std::string& headers, int load_flags, - int origin_pid, + int requestor_pid, ResourceType::Type request_type, - bool mixed_content); + bool mixed_content, + int routing_id); // Call this method before calling Start() to append a chunk of binary data // to the request body. May only be used with HTTP(S) POST requests. |