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

Side by Side Diff: content/browser/net/view_blob_internals_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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_blob_internals_job_factory.h" 5 #include "content/browser/net/view_blob_internals_job_factory.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "content/public/common/url_constants.h" 10 #include "content/public/common/url_constants.h"
11 #include "storage/browser/blob/view_blob_internals_job.h" 11 #include "storage/browser/blob/view_blob_internals_job.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 // static. 15 // static.
16 bool ViewBlobInternalsJobFactory::IsSupportedURL(const GURL& url) { 16 bool ViewBlobInternalsJobFactory::IsSupportedURL(const GURL& url) {
17 return url.SchemeIs(kChromeUIScheme) && 17 return url.SchemeIs(kChromeUIScheme) &&
18 url.host() == kChromeUIBlobInternalsHost; 18 url.host_piece() == kChromeUIBlobInternalsHost;
19 } 19 }
20 20
21 // static. 21 // static.
22 net::URLRequestJob* ViewBlobInternalsJobFactory::CreateJobForRequest( 22 net::URLRequestJob* ViewBlobInternalsJobFactory::CreateJobForRequest(
23 net::URLRequest* request, 23 net::URLRequest* request,
24 net::NetworkDelegate* network_delegate, 24 net::NetworkDelegate* network_delegate,
25 storage::BlobStorageContext* blob_storage_context) { 25 storage::BlobStorageContext* blob_storage_context) {
26 return new storage::ViewBlobInternalsJob( 26 return new storage::ViewBlobInternalsJob(
27 request, network_delegate, blob_storage_context); 27 request, network_delegate, blob_storage_context);
28 } 28 }
29 29
30 } // namespace content 30 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_impl.cc ('k') | content/browser/net/view_http_cache_job_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698