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

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

Issue 10855209: Refactoring: ProtocolHandler::MaybeCreateJob takes NetworkDelegate as argument (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Latest merge Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
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 "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "content/public/common/url_constants.h" 9 #include "content/public/common/url_constants.h"
10 #include "net/url_request/url_request.h"
11 #include "webkit/blob/view_blob_internals_job.h" 10 #include "webkit/blob/view_blob_internals_job.h"
12 11
13 // static. 12 // static.
14 bool ViewBlobInternalsJobFactory::IsSupportedURL(const GURL& url) { 13 bool ViewBlobInternalsJobFactory::IsSupportedURL(const GURL& url) {
15 return url.SchemeIs(chrome::kChromeUIScheme) && 14 return url.SchemeIs(chrome::kChromeUIScheme) &&
16 url.host() == chrome::kChromeUIBlobInternalsHost; 15 url.host() == chrome::kChromeUIBlobInternalsHost;
17 } 16 }
18 17
19 // static. 18 // static.
20 net::URLRequestJob* ViewBlobInternalsJobFactory::CreateJobForRequest( 19 net::URLRequestJob* ViewBlobInternalsJobFactory::CreateJobForRequest(
21 net::URLRequest* request, 20 net::URLRequest* request,
21 net::NetworkDelegate* network_delegate,
22 webkit_blob::BlobStorageController* blob_storage_controller) { 22 webkit_blob::BlobStorageController* blob_storage_controller) {
23 return new webkit_blob::ViewBlobInternalsJob( 23 return new webkit_blob::ViewBlobInternalsJob(
24 request, blob_storage_controller); 24 request, network_delegate, blob_storage_controller);
25 } 25 }
OLDNEW
« no previous file with comments | « content/browser/net/view_blob_internals_job_factory.h ('k') | content/browser/net/view_http_cache_job_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698