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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 RESOURCE_TYPE_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 false, // enable_load_timing |
185 blink::WebReferrerPolicyDefault, // referrer_policy | 186 blink::WebReferrerPolicyDefault, // referrer_policy |
186 blink::WebPageVisibilityStateVisible, // visibility_state | 187 blink::WebPageVisibilityStateVisible, // visibility_state |
187 NULL, // context | 188 NULL, // context |
188 base::WeakPtr<ResourceMessageFilter>(), // filter | 189 base::WeakPtr<ResourceMessageFilter>(), // filter |
189 is_async); // is_async | 190 is_async); // is_async |
190 info->AssociateWithRequest(url_request.get()); | 191 info->AssociateWithRequest(url_request.get()); |
191 return url_request.Pass(); | 192 return url_request.Pass(); |
192 } | 193 } |
193 | 194 |
194 scoped_ptr<net::URLRequest> NewURLRequest(const char* url, | 195 scoped_ptr<net::URLRequest> NewURLRequest(const char* url, |
(...skipping 1898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2093 FireCoalescingTimer(); | 2094 FireCoalescingTimer(); |
2094 | 2095 |
2095 EXPECT_TRUE(high->started()); | 2096 EXPECT_TRUE(high->started()); |
2096 EXPECT_TRUE(high2->started()); | 2097 EXPECT_TRUE(high2->started()); |
2097 EXPECT_TRUE(low->started()); | 2098 EXPECT_TRUE(low->started()); |
2098 } | 2099 } |
2099 | 2100 |
2100 } // unnamed namespace | 2101 } // unnamed namespace |
2101 | 2102 |
2102 } // namespace content | 2103 } // namespace content |
OLD | NEW |