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

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

Issue 11410019: ********** Chromium Blob hacking (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 10 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 #if 0
6 // TODO: get this to work with the new context class
5 #include "content/browser/net/view_blob_internals_job_factory.h" 7 #include "content/browser/net/view_blob_internals_job_factory.h"
6 8
7 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
8 #include "base/string_util.h" 10 #include "base/string_util.h"
9 #include "content/public/common/url_constants.h" 11 #include "content/public/common/url_constants.h"
10 #include "webkit/blob/view_blob_internals_job.h" 12 #include "webkit/blob/view_blob_internals_job.h"
11 13
12 namespace content { 14 namespace content {
13 15
14 // static. 16 // static.
15 bool ViewBlobInternalsJobFactory::IsSupportedURL(const GURL& url) { 17 bool ViewBlobInternalsJobFactory::IsSupportedURL(const GURL& url) {
16 return url.SchemeIs(chrome::kChromeUIScheme) && 18 return url.SchemeIs(chrome::kChromeUIScheme) &&
17 url.host() == chrome::kChromeUIBlobInternalsHost; 19 url.host() == chrome::kChromeUIBlobInternalsHost;
18 } 20 }
19 21
20 // static. 22 // static.
21 net::URLRequestJob* ViewBlobInternalsJobFactory::CreateJobForRequest( 23 net::URLRequestJob* ViewBlobInternalsJobFactory::CreateJobForRequest(
22 net::URLRequest* request, 24 net::URLRequest* request,
23 net::NetworkDelegate* network_delegate, 25 net::NetworkDelegate* network_delegate,
24 webkit_blob::BlobStorageController* blob_storage_controller) { 26 webkit_blob::BlobStorageController* blob_storage_controller) {
25 return new webkit_blob::ViewBlobInternalsJob( 27 return new webkit_blob::ViewBlobInternalsJob(
26 request, network_delegate, blob_storage_controller); 28 request, network_delegate, blob_storage_controller);
27 } 29 }
28 30
29 } // namespace content 31 } // namespace content
32
33 #endif // 0
OLDNEW
« no previous file with comments | « content/browser/net/view_blob_internals_job_factory.h ('k') | content/browser/storage_partition_impl_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698