| 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" | |
| 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 } |
| OLD | NEW |