Chromium Code Reviews| OLD | NEW |
|---|---|
| 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" | 10 #include "net/url_request/url_request.h" |
|
mmenke
2012/08/21 15:28:49
While you're here.... I don't think we need this
shalev
2012/08/22 20:34:10
Done.
| |
| 11 #include "webkit/blob/view_blob_internals_job.h" | 11 #include "webkit/blob/view_blob_internals_job.h" |
| 12 | 12 |
| 13 // static. | 13 // static. |
| 14 bool ViewBlobInternalsJobFactory::IsSupportedURL(const GURL& url) { | 14 bool ViewBlobInternalsJobFactory::IsSupportedURL(const GURL& url) { |
| 15 return url.SchemeIs(chrome::kChromeUIScheme) && | 15 return url.SchemeIs(chrome::kChromeUIScheme) && |
| 16 url.host() == chrome::kChromeUIBlobInternalsHost; | 16 url.host() == chrome::kChromeUIBlobInternalsHost; |
| 17 } | 17 } |
| 18 | 18 |
| 19 // static. | 19 // static. |
| 20 net::URLRequestJob* ViewBlobInternalsJobFactory::CreateJobForRequest( | 20 net::URLRequestJob* ViewBlobInternalsJobFactory::CreateJobForRequest( |
| 21 net::URLRequest* request, | 21 net::URLRequest* request, |
| 22 net::NetworkDelegate* network_delegate, | |
| 22 webkit_blob::BlobStorageController* blob_storage_controller) { | 23 webkit_blob::BlobStorageController* blob_storage_controller) { |
| 23 return new webkit_blob::ViewBlobInternalsJob( | 24 return new webkit_blob::ViewBlobInternalsJob( |
| 24 request, blob_storage_controller); | 25 request, network_delegate, blob_storage_controller); |
| 25 } | 26 } |
| OLD | NEW |