| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_http_cache_job_factory.h" | 5 #include "content/browser/net/view_http_cache_job_factory.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 // We may be holding the last reference to this job. Do not access |this| | 187 // We may be holding the last reference to this job. Do not access |this| |
| 188 // after Release(). | 188 // after Release(). |
| 189 Release(); // Acquired on Start(). | 189 Release(); // Acquired on Start(). |
| 190 } | 190 } |
| 191 | 191 |
| 192 } // namespace. | 192 } // namespace. |
| 193 | 193 |
| 194 // Static. | 194 // Static. |
| 195 bool ViewHttpCacheJobFactory::IsSupportedURL(const GURL& url) { | 195 bool ViewHttpCacheJobFactory::IsSupportedURL(const GURL& url) { |
| 196 return url.SchemeIs(kChromeUIScheme) && | 196 return url.SchemeIs(kChromeUIScheme) && |
| 197 url.host() == kChromeUINetworkViewCacheHost; | 197 url.host_piece() == kChromeUINetworkViewCacheHost; |
| 198 } | 198 } |
| 199 | 199 |
| 200 // Static. | 200 // Static. |
| 201 net::URLRequestJob* ViewHttpCacheJobFactory::CreateJobForRequest( | 201 net::URLRequestJob* ViewHttpCacheJobFactory::CreateJobForRequest( |
| 202 net::URLRequest* request, net::NetworkDelegate* network_delegate) { | 202 net::URLRequest* request, net::NetworkDelegate* network_delegate) { |
| 203 return new ViewHttpCacheJob(request, network_delegate); | 203 return new ViewHttpCacheJob(request, network_delegate); |
| 204 } | 204 } |
| 205 | 205 |
| 206 } // namespace content | 206 } // namespace content |
| OLD | NEW |