| 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 "chrome/browser/net/view_blob_internals_job_factory.h" | 5 #include "chrome/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 "chrome/browser/net/chrome_url_request_context.h" | 
| 10 #include "chrome/common/url_constants.h" | 10 #include "chrome/common/url_constants.h" | 
| 11 #include "content/browser/chrome_blob_storage_context.h" |  | 
| 12 #include "net/url_request/url_request.h" | 11 #include "net/url_request/url_request.h" | 
| 13 #include "webkit/blob/view_blob_internals_job.h" | 12 #include "webkit/blob/view_blob_internals_job.h" | 
| 14 | 13 | 
| 15 // static. | 14 // static. | 
| 16 bool ViewBlobInternalsJobFactory::IsSupportedURL(const GURL& url) { | 15 bool ViewBlobInternalsJobFactory::IsSupportedURL(const GURL& url) { | 
| 17   return url.SchemeIs(chrome::kChromeUIScheme) && | 16   return url.SchemeIs(chrome::kChromeUIScheme) && | 
| 18          url.host() == chrome::kChromeUIBlobInternalsHost; | 17          url.host() == chrome::kChromeUIBlobInternalsHost; | 
| 19 } | 18 } | 
| 20 | 19 | 
| 21 // static. | 20 // static. | 
| 22 net::URLRequestJob* ViewBlobInternalsJobFactory::CreateJobForRequest( | 21 net::URLRequestJob* ViewBlobInternalsJobFactory::CreateJobForRequest( | 
| 23     net::URLRequest* request, | 22     net::URLRequest* request, | 
| 24     webkit_blob::BlobStorageController* blob_storage_controller) { | 23     webkit_blob::BlobStorageController* blob_storage_controller) { | 
| 25   return new webkit_blob::ViewBlobInternalsJob( | 24   return new webkit_blob::ViewBlobInternalsJob( | 
| 26       request, blob_storage_controller); | 25       request, blob_storage_controller); | 
| 27 } | 26 } | 
| OLD | NEW | 
|---|