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

Unified Diff: content/network/cache_url_loader.cc

Issue 2874163004: Add support in the network service for different contexts. (Closed)
Patch Set: fixes Created 3 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
Index: content/network/cache_url_loader.cc
diff --git a/content/network/cache_url_loader.cc b/content/network/cache_url_loader.cc
index dc8cc19225edaa8d150e6af0d1981d3f9b3d4bf2..8cf1c9080cd83080795a63ede23a86ffc7a0b0db 100644
--- a/content/network/cache_url_loader.cc
+++ b/content/network/cache_url_loader.cc
@@ -18,7 +18,7 @@ namespace {
class CacheURLLoader {
public:
- CacheURLLoader(const ResourceRequest& request,
+ CacheURLLoader(const GURL& url,
net::URLRequestContext* request_context,
mojom::URLLoaderClientPtr client)
: client_(std::move(client)) {
@@ -30,7 +30,7 @@ class CacheURLLoader {
client_->OnReceiveResponse(resource_response, base::nullopt, nullptr);
std::string cache_key =
- request.url.spec().substr(strlen(kChromeUINetworkViewCacheURL));
+ url.spec().substr(strlen(kChromeUINetworkViewCacheURL));
int rv;
if (cache_key.empty()) {
@@ -87,10 +87,10 @@ class CacheURLLoader {
};
}
-void StartCacheURLLoader(const ResourceRequest& request,
+void StartCacheURLLoader(const GURL& url,
net::URLRequestContext* request_context,
mojom::URLLoaderClientPtr client) {
- new CacheURLLoader(request, request_context, std::move(client));
+ new CacheURLLoader(url, request_context, std::move(client));
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698