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/loader/resource_scheduler.h" | 5 #include "content/browser/loader/resource_scheduler.h" |
6 | 6 |
7 #include "base/memory/scoped_vector.h" | 7 #include "base/memory/scoped_vector.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "base/timer/mock_timer.h" | 10 #include "base/timer/mock_timer.h" |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 ResourceRequestInfoImpl* info = new ResourceRequestInfoImpl( | 168 ResourceRequestInfoImpl* info = new ResourceRequestInfoImpl( |
169 PROCESS_TYPE_RENDERER, // process_type | 169 PROCESS_TYPE_RENDERER, // process_type |
170 child_id, // child_id | 170 child_id, // child_id |
171 route_id, // route_id | 171 route_id, // route_id |
172 0, // origin_pid | 172 0, // origin_pid |
173 ++next_request_id_, // request_id | 173 ++next_request_id_, // request_id |
174 MSG_ROUTING_NONE, // render_frame_id | 174 MSG_ROUTING_NONE, // render_frame_id |
175 false, // is_main_frame | 175 false, // is_main_frame |
176 false, // parent_is_main_frame | 176 false, // parent_is_main_frame |
177 0, // parent_render_frame_id | 177 0, // parent_render_frame_id |
178 ResourceType::SUB_RESOURCE, // resource_type | 178 RESOURCE_TYPE_SUB_RESOURCE, // resource_type |
179 PAGE_TRANSITION_LINK, // transition_type | 179 PAGE_TRANSITION_LINK, // transition_type |
180 false, // should_replace_current_entry | 180 false, // should_replace_current_entry |
181 false, // is_download | 181 false, // is_download |
182 false, // is_stream | 182 false, // is_stream |
183 true, // allow_download | 183 true, // allow_download |
184 false, // has_user_gesture | 184 false, // has_user_gesture |
185 blink::WebReferrerPolicyDefault, // referrer_policy | 185 blink::WebReferrerPolicyDefault, // referrer_policy |
186 blink::WebPageVisibilityStateVisible, // visibility_state | 186 blink::WebPageVisibilityStateVisible, // visibility_state |
187 NULL, // context | 187 NULL, // context |
188 base::WeakPtr<ResourceMessageFilter>(), // filter | 188 base::WeakPtr<ResourceMessageFilter>(), // filter |
(...skipping 1904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2093 FireCoalescingTimer(); | 2093 FireCoalescingTimer(); |
2094 | 2094 |
2095 EXPECT_TRUE(high->started()); | 2095 EXPECT_TRUE(high->started()); |
2096 EXPECT_TRUE(high2->started()); | 2096 EXPECT_TRUE(high2->started()); |
2097 EXPECT_TRUE(low->started()); | 2097 EXPECT_TRUE(low->started()); |
2098 } | 2098 } |
2099 | 2099 |
2100 } // unnamed namespace | 2100 } // unnamed namespace |
2101 | 2101 |
2102 } // namespace content | 2102 } // namespace content |
OLD | NEW |