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

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

Issue 9834039: Remove resource_request_info_impl.h dependency from chrome. This also makes blob/file system urls w… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 "chrome/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 "chrome/browser/net/chrome_url_request_context.h" 9 #include "content/public/common/url_constants.h"
10 #include "chrome/common/url_constants.h"
11 #include "net/url_request/url_request.h" 10 #include "net/url_request/url_request.h"
12 #include "webkit/blob/view_blob_internals_job.h" 11 #include "webkit/blob/view_blob_internals_job.h"
13 12
14 // static. 13 // static.
15 bool ViewBlobInternalsJobFactory::IsSupportedURL(const GURL& url) { 14 bool ViewBlobInternalsJobFactory::IsSupportedURL(const GURL& url) {
16 return url.SchemeIs(chrome::kChromeUIScheme) && 15 return url.SchemeIs(chrome::kChromeUIScheme) &&
17 url.host() == chrome::kChromeUIBlobInternalsHost; 16 url.host() == chrome::kChromeUIBlobInternalsHost;
18 } 17 }
19 18
20 // static. 19 // static.
21 net::URLRequestJob* ViewBlobInternalsJobFactory::CreateJobForRequest( 20 net::URLRequestJob* ViewBlobInternalsJobFactory::CreateJobForRequest(
22 net::URLRequest* request, 21 net::URLRequest* request,
23 webkit_blob::BlobStorageController* blob_storage_controller) { 22 webkit_blob::BlobStorageController* blob_storage_controller) {
24 return new webkit_blob::ViewBlobInternalsJob( 23 return new webkit_blob::ViewBlobInternalsJob(
25 request, blob_storage_controller); 24 request, blob_storage_controller);
26 } 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