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> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
9 #include "base/callback.h" | 11 #include "base/callback.h" |
10 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
11 #include "base/location.h" | 13 #include "base/location.h" |
| 14 #include "base/macros.h" |
12 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
13 #include "base/numerics/safe_conversions.h" | 16 #include "base/numerics/safe_conversions.h" |
14 #include "base/single_thread_task_runner.h" | 17 #include "base/single_thread_task_runner.h" |
15 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
16 #include "base/thread_task_runner_handle.h" | 19 #include "base/thread_task_runner_handle.h" |
17 #include "content/public/common/url_constants.h" | 20 #include "content/public/common/url_constants.h" |
18 #include "net/base/completion_callback.h" | 21 #include "net/base/completion_callback.h" |
19 #include "net/base/net_errors.h" | 22 #include "net/base/net_errors.h" |
20 #include "net/url_request/url_request.h" | 23 #include "net/url_request/url_request.h" |
21 #include "net/url_request/url_request_simple_job.h" | 24 #include "net/url_request/url_request_simple_job.h" |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 url.host() == kChromeUINetworkViewCacheHost; | 197 url.host() == kChromeUINetworkViewCacheHost; |
195 } | 198 } |
196 | 199 |
197 // Static. | 200 // Static. |
198 net::URLRequestJob* ViewHttpCacheJobFactory::CreateJobForRequest( | 201 net::URLRequestJob* ViewHttpCacheJobFactory::CreateJobForRequest( |
199 net::URLRequest* request, net::NetworkDelegate* network_delegate) { | 202 net::URLRequest* request, net::NetworkDelegate* network_delegate) { |
200 return new ViewHttpCacheJob(request, network_delegate); | 203 return new ViewHttpCacheJob(request, network_delegate); |
201 } | 204 } |
202 | 205 |
203 } // namespace content | 206 } // namespace content |
OLD | NEW |