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

Unified Diff: content/child/web_url_loader_impl.cc

Issue 218973002: Extract Peer interface out of ResourceLoaderBridge. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: REBASED Created 6 years, 9 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 | « content/child/resource_dispatcher_unittest.cc ('k') | content/content_child.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/web_url_loader_impl.cc
diff --git a/content/child/web_url_loader_impl.cc b/content/child/web_url_loader_impl.cc
index 13300df12f66c0c64a65777dfb8daf0add7ebc43..00bbf1b1e61598ff987a349e5a580198774c28b6 100644
--- a/content/child/web_url_loader_impl.cc
+++ b/content/child/web_url_loader_impl.cc
@@ -18,6 +18,7 @@
#include "content/child/request_info.h"
#include "content/child/sync_load_response.h"
#include "content/common/resource_request_body.h"
+#include "content/public/child/request_peer.h"
#include "net/base/data_url.h"
#include "net/base/load_flags.h"
#include "net/base/mime_util.h"
@@ -221,7 +222,7 @@ net::RequestPriority ConvertWebKitPriorityToNetPriority(
// call to WebURLLoaderClient. The bridge requires its Peer to stay alive
// until it receives OnCompletedRequest.
class WebURLLoaderImpl::Context : public base::RefCounted<Context>,
- public ResourceLoaderBridge::Peer {
+ public RequestPeer {
public:
explicit Context(WebURLLoaderImpl* loader);
@@ -234,7 +235,7 @@ class WebURLLoaderImpl::Context : public base::RefCounted<Context>,
void Start(const WebURLRequest& request,
SyncLoadResponse* sync_load_response);
- // ResourceLoaderBridge::Peer methods:
+ // RequestPeer methods:
virtual void OnUploadProgress(uint64 position, uint64 size) OVERRIDE;
virtual bool OnReceivedRedirect(
const GURL& new_url,
« no previous file with comments | « content/child/resource_dispatcher_unittest.cc ('k') | content/content_child.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698