| 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 "content/browser/browser_thread_impl.h" | 10 #include "content/browser/browser_thread_impl.h" |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 0, // origin_pid | 148 0, // origin_pid |
| 149 ++next_request_id_, // request_id | 149 ++next_request_id_, // request_id |
| 150 false, // is_main_frame | 150 false, // is_main_frame |
| 151 0, // frame_id | 151 0, // frame_id |
| 152 false, // parent_is_main_frame | 152 false, // parent_is_main_frame |
| 153 0, // parent_frame_id | 153 0, // parent_frame_id |
| 154 ResourceType::SUB_RESOURCE, // resource_type | 154 ResourceType::SUB_RESOURCE, // resource_type |
| 155 PAGE_TRANSITION_LINK, // transition_type | 155 PAGE_TRANSITION_LINK, // transition_type |
| 156 false, // is_download | 156 false, // is_download |
| 157 false, // is_stream | 157 false, // is_stream |
| 158 false, // is_detachable |
| 158 true, // allow_download | 159 true, // allow_download |
| 159 false, // has_user_gesture | 160 false, // has_user_gesture |
| 160 WebKit::WebReferrerPolicyDefault, // referrer_policy | 161 WebKit::WebReferrerPolicyDefault, // referrer_policy |
| 161 NULL, // context | 162 NULL, // context |
| 162 base::WeakPtr<ResourceMessageFilter>(), // filter | 163 base::WeakPtr<ResourceMessageFilter>(), // filter |
| 163 true); // is_async | 164 true); // is_async |
| 164 info->AssociateWithRequest(url_request.get()); | 165 info->AssociateWithRequest(url_request.get()); |
| 165 return url_request.Pass(); | 166 return url_request.Pass(); |
| 166 } | 167 } |
| 167 | 168 |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 EXPECT_FALSE(idle->started()); | 427 EXPECT_FALSE(idle->started()); |
| 427 | 428 |
| 428 scheduler_.OnWillInsertBody(kChildId, kRouteId); | 429 scheduler_.OnWillInsertBody(kChildId, kRouteId); |
| 429 EXPECT_FALSE(request->started()); | 430 EXPECT_FALSE(request->started()); |
| 430 EXPECT_FALSE(idle->started()); | 431 EXPECT_FALSE(idle->started()); |
| 431 } | 432 } |
| 432 | 433 |
| 433 } // unnamed namespace | 434 } // unnamed namespace |
| 434 | 435 |
| 435 } // namespace content | 436 } // namespace content |
| OLD | NEW |