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

Unified Diff: content/child/resource_dispatcher.cc

Issue 294043012: No need to have RequestPeer as a data member variable of IPCResourceLoaderBridge. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/resource_dispatcher.cc
diff --git a/content/child/resource_dispatcher.cc b/content/child/resource_dispatcher.cc
index 95bd078d4bb0c87dfafe568f066faf0dfa64e997..456695cfbe9c43866a7b691b72bb5b436fc0c20a 100644
--- a/content/child/resource_dispatcher.cc
+++ b/content/child/resource_dispatcher.cc
@@ -84,8 +84,6 @@ class IPCResourceLoaderBridge : public ResourceLoaderBridge {
virtual void SyncLoad(SyncLoadResponse* response) OVERRIDE;
private:
- RequestPeer* peer_;
-
// The resource dispatcher for this loader. The bridge doesn't own it, but
// it's guaranteed to outlive the bridge.
ResourceDispatcher* dispatcher_;
@@ -109,8 +107,7 @@ class IPCResourceLoaderBridge : public ResourceLoaderBridge {
IPCResourceLoaderBridge::IPCResourceLoaderBridge(
ResourceDispatcher* dispatcher,
const RequestInfo& request_info)
- : peer_(NULL),
- dispatcher_(dispatcher),
+ : dispatcher_(dispatcher),
request_id_(-1),
routing_id_(request_info.routing_id),
is_synchronous_request_(false) {
@@ -177,10 +174,8 @@ bool IPCResourceLoaderBridge::Start(RequestPeer* peer) {
return false;
}
- peer_ = peer;
-
// generate the request ID, and append it to the message
- request_id_ = dispatcher_->AddPendingRequest(peer_,
+ request_id_ = dispatcher_->AddPendingRequest(peer,
request_.resource_type,
request_.origin_pid,
frame_origin_,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698