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

Unified Diff: content/network/cache_url_loader.cc

Issue 2874163004: Add support in the network service for different contexts. (Closed)
Patch Set: review comment and clang 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
« no previous file with comments | « content/network/cache_url_loader.h ('k') | content/network/network_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/network/cache_url_loader.cc
diff --git a/content/network/cache_url_loader.cc b/content/network/cache_url_loader.cc
index 67e0ab7588f99d8ea446cddd18916d052872de37..c9e3a4986a2612f779a5ba3df517ef96d6982fe8 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()) {
@@ -72,10 +72,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
« no previous file with comments | « content/network/cache_url_loader.h ('k') | content/network/network_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698