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/appcache/appcache_url_request_job.h" | 5 #include "content/browser/appcache/appcache_url_request_job.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
16 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
17 #include "base/threading/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
18 #include "content/browser/appcache/appcache.h" | 18 #include "content/browser/appcache/appcache.h" |
19 #include "content/browser/appcache/appcache_group.h" | 19 #include "content/browser/appcache/appcache_group.h" |
20 #include "content/browser/appcache/appcache_histograms.h" | 20 #include "content/browser/appcache/appcache_histograms.h" |
21 #include "content/browser/appcache/appcache_host.h" | 21 #include "content/browser/appcache/appcache_host.h" |
22 #include "content/browser/appcache/appcache_service_impl.h" | 22 #include "content/browser/appcache/appcache_service_impl.h" |
23 #include "net/base/io_buffer.h" | 23 #include "net/base/io_buffer.h" |
24 #include "net/base/net_errors.h" | 24 #include "net/base/net_errors.h" |
25 #include "net/http/http_request_headers.h" | 25 #include "net/http/http_request_headers.h" |
26 #include "net/http/http_response_headers.h" | 26 #include "net/http/http_response_headers.h" |
27 #include "net/http/http_util.h" | 27 #include "net/http/http_util.h" |
28 #include "net/log/net_log.h" | |
29 #include "net/log/net_log_event_type.h" | 28 #include "net/log/net_log_event_type.h" |
| 29 #include "net/log/net_log_with_source.h" |
30 #include "net/url_request/url_request.h" | 30 #include "net/url_request/url_request.h" |
31 #include "net/url_request/url_request_status.h" | 31 #include "net/url_request/url_request_status.h" |
32 | 32 |
33 namespace content { | 33 namespace content { |
34 | 34 |
35 AppCacheURLRequestJob::AppCacheURLRequestJob( | 35 AppCacheURLRequestJob::AppCacheURLRequestJob( |
36 net::URLRequest* request, | 36 net::URLRequest* request, |
37 net::NetworkDelegate* network_delegate, | 37 net::NetworkDelegate* network_delegate, |
38 AppCacheStorage* storage, | 38 AppCacheStorage* storage, |
39 AppCacheHost* host, | 39 AppCacheHost* host, |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 if (ranges.size() == 1U) | 453 if (ranges.size() == 1U) |
454 range_requested_ = ranges[0]; | 454 range_requested_ = ranges[0]; |
455 } | 455 } |
456 | 456 |
457 void AppCacheURLRequestJob::NotifyRestartRequired() { | 457 void AppCacheURLRequestJob::NotifyRestartRequired() { |
458 on_prepare_to_restart_callback_.Run(); | 458 on_prepare_to_restart_callback_.Run(); |
459 URLRequestJob::NotifyRestartRequired(); | 459 URLRequestJob::NotifyRestartRequired(); |
460 } | 460 } |
461 | 461 |
462 } // namespace content | 462 } // namespace content |
OLD | NEW |