OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_request_handler.h" | 5 #include "content/browser/appcache/appcache_request_handler.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <stack> | 9 #include <stack> |
10 #include <string> | 10 #include <string> |
11 #include <utility> | 11 #include <utility> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/bind.h" | 14 #include "base/bind.h" |
15 #include "base/bind_helpers.h" | 15 #include "base/bind_helpers.h" |
16 #include "base/callback.h" | 16 #include "base/callback.h" |
17 #include "base/location.h" | 17 #include "base/location.h" |
18 #include "base/macros.h" | 18 #include "base/macros.h" |
19 #include "base/memory/ptr_util.h" | 19 #include "base/memory/ptr_util.h" |
20 #include "base/memory/weak_ptr.h" | 20 #include "base/memory/weak_ptr.h" |
21 #include "base/single_thread_task_runner.h" | 21 #include "base/single_thread_task_runner.h" |
22 #include "base/synchronization/waitable_event.h" | 22 #include "base/synchronization/waitable_event.h" |
23 #include "base/thread_task_runner_handle.h" | |
24 #include "base/threading/thread.h" | 23 #include "base/threading/thread.h" |
| 24 #include "base/threading/thread_task_runner_handle.h" |
25 #include "content/browser/appcache/appcache.h" | 25 #include "content/browser/appcache/appcache.h" |
26 #include "content/browser/appcache/appcache_backend_impl.h" | 26 #include "content/browser/appcache/appcache_backend_impl.h" |
27 #include "content/browser/appcache/appcache_url_request_job.h" | 27 #include "content/browser/appcache/appcache_url_request_job.h" |
28 #include "content/browser/appcache/mock_appcache_policy.h" | 28 #include "content/browser/appcache/mock_appcache_policy.h" |
29 #include "content/browser/appcache/mock_appcache_service.h" | 29 #include "content/browser/appcache/mock_appcache_service.h" |
30 #include "net/base/net_errors.h" | 30 #include "net/base/net_errors.h" |
31 #include "net/base/request_priority.h" | 31 #include "net/base/request_priority.h" |
32 #include "net/http/http_response_headers.h" | 32 #include "net/http/http_response_headers.h" |
33 #include "net/url_request/url_request.h" | 33 #include "net/url_request/url_request.h" |
34 #include "net/url_request/url_request_context.h" | 34 #include "net/url_request/url_request_context.h" |
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1028 | 1028 |
1029 TEST_F(AppCacheRequestHandlerTest, WorkerRequest) { | 1029 TEST_F(AppCacheRequestHandlerTest, WorkerRequest) { |
1030 RunTestOnIOThread(&AppCacheRequestHandlerTest::WorkerRequest); | 1030 RunTestOnIOThread(&AppCacheRequestHandlerTest::WorkerRequest); |
1031 } | 1031 } |
1032 | 1032 |
1033 TEST_F(AppCacheRequestHandlerTest, MainResource_Blocked) { | 1033 TEST_F(AppCacheRequestHandlerTest, MainResource_Blocked) { |
1034 RunTestOnIOThread(&AppCacheRequestHandlerTest::MainResource_Blocked); | 1034 RunTestOnIOThread(&AppCacheRequestHandlerTest::MainResource_Blocked); |
1035 } | 1035 } |
1036 | 1036 |
1037 } // namespace content | 1037 } // namespace content |
OLD | NEW |