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/child/resource_dispatcher.h" | 5 #include "content/child/resource_dispatcher.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 #include <tuple> | 12 #include <tuple> |
13 #include <utility> | 13 #include <utility> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/memory/ptr_util.h" | 17 #include "base/memory/ptr_util.h" |
18 #include "base/memory/shared_memory.h" | 18 #include "base/memory/shared_memory.h" |
19 #include "base/message_loop/message_loop.h" | 19 #include "base/message_loop/message_loop.h" |
20 #include "base/process/process_handle.h" | 20 #include "base/process/process_handle.h" |
21 #include "base/run_loop.h" | 21 #include "base/run_loop.h" |
22 #include "base/test/scoped_feature_list.h" | 22 #include "base/test/scoped_feature_list.h" |
23 #include "content/child/request_extra_data.h" | 23 #include "content/child/request_extra_data.h" |
24 #include "content/child/test_request_peer.h" | 24 #include "content/child/test_request_peer.h" |
25 #include "content/common/appcache_interfaces.h" | 25 #include "content/common/appcache_interfaces.h" |
26 #include "content/common/resource_messages.h" | 26 #include "content/common/resource_messages.h" |
27 #include "content/common/resource_request.h" | |
28 #include "content/common/resource_request_completion_status.h" | 27 #include "content/common/resource_request_completion_status.h" |
29 #include "content/common/service_worker/service_worker_types.h" | |
30 #include "content/public/child/fixed_received_data.h" | 28 #include "content/public/child/fixed_received_data.h" |
31 #include "content/public/child/request_peer.h" | 29 #include "content/public/child/request_peer.h" |
32 #include "content/public/child/resource_dispatcher_delegate.h" | 30 #include "content/public/child/resource_dispatcher_delegate.h" |
33 #include "content/public/common/content_features.h" | 31 #include "content/public/common/content_features.h" |
34 #include "content/public/common/request_context_frame_type.h" | 32 #include "content/public/common/request_context_frame_type.h" |
| 33 #include "content/public/common/resource_request.h" |
35 #include "content/public/common/resource_request_body.h" | 34 #include "content/public/common/resource_request_body.h" |
36 #include "content/public/common/resource_response.h" | 35 #include "content/public/common/resource_response.h" |
| 36 #include "content/public/common/service_worker_modes.h" |
37 #include "net/base/net_errors.h" | 37 #include "net/base/net_errors.h" |
38 #include "net/base/request_priority.h" | 38 #include "net/base/request_priority.h" |
39 #include "net/http/http_response_headers.h" | 39 #include "net/http/http_response_headers.h" |
40 #include "testing/gtest/include/gtest/gtest.h" | 40 #include "testing/gtest/include/gtest/gtest.h" |
41 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" | 41 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" |
42 #include "url/gurl.h" | 42 #include "url/gurl.h" |
43 | 43 |
44 namespace content { | 44 namespace content { |
45 | 45 |
46 static const char kTestPageUrl[] = "http://www.google.com/"; | 46 static const char kTestPageUrl[] = "http://www.google.com/"; |
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
915 ResourceResponseHead response_head; | 915 ResourceResponseHead response_head; |
916 | 916 |
917 PerformTest(response_head); | 917 PerformTest(response_head); |
918 | 918 |
919 EXPECT_EQ(base::TimeTicks(), response_info().load_timing.request_start); | 919 EXPECT_EQ(base::TimeTicks(), response_info().load_timing.request_start); |
920 EXPECT_EQ(base::TimeTicks(), | 920 EXPECT_EQ(base::TimeTicks(), |
921 response_info().load_timing.connect_timing.dns_start); | 921 response_info().load_timing.connect_timing.dns_start); |
922 } | 922 } |
923 | 923 |
924 } // namespace content | 924 } // namespace content |
OLD | NEW |