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

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: 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
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..05b6ca475873e641ba344ab7894338c49a7302a4 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_delegate_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 RequestDelegatePeer {
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:
+ // RequestDelegatePeer methods:
virtual void OnUploadProgress(uint64 position, uint64 size) OVERRIDE;
virtual bool OnReceivedRedirect(
const GURL& new_url,

Powered by Google App Engine
This is Rietveld 408576698