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

Side by Side Diff: content/browser/net/view_http_cache_job_factory.cc

Issue 2478573004: Convert GURL::{host,path} to GURL::{host_piece,path_piece} for ==. (Closed)
Patch Set: rebase to #431874 Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/net/view_http_cache_job_factory.h" 5 #include "content/browser/net/view_http_cache_job_factory.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 // We may be holding the last reference to this job. Do not access |this| 187 // We may be holding the last reference to this job. Do not access |this|
188 // after Release(). 188 // after Release().
189 Release(); // Acquired on Start(). 189 Release(); // Acquired on Start().
190 } 190 }
191 191
192 } // namespace. 192 } // namespace.
193 193
194 // Static. 194 // Static.
195 bool ViewHttpCacheJobFactory::IsSupportedURL(const GURL& url) { 195 bool ViewHttpCacheJobFactory::IsSupportedURL(const GURL& url) {
196 return url.SchemeIs(kChromeUIScheme) && 196 return url.SchemeIs(kChromeUIScheme) &&
197 url.host() == kChromeUINetworkViewCacheHost; 197 url.host_piece() == kChromeUINetworkViewCacheHost;
198 } 198 }
199 199
200 // Static. 200 // Static.
201 net::URLRequestJob* ViewHttpCacheJobFactory::CreateJobForRequest( 201 net::URLRequestJob* ViewHttpCacheJobFactory::CreateJobForRequest(
202 net::URLRequest* request, net::NetworkDelegate* network_delegate) { 202 net::URLRequest* request, net::NetworkDelegate* network_delegate) {
203 return new ViewHttpCacheJob(request, network_delegate); 203 return new ViewHttpCacheJob(request, network_delegate);
204 } 204 }
205 205
206 } // namespace content 206 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/net/view_blob_internals_job_factory.cc ('k') | content/browser/webui/content_web_ui_controller_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698