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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 scoped_ptr<TestRequest> low(NewRequest("http://host/high", net::LOWEST)); | 437 scoped_ptr<TestRequest> low(NewRequest("http://host/high", net::LOWEST)); |
437 | 438 |
438 scoped_ptr<TestRequest> request( | 439 scoped_ptr<TestRequest> request( |
439 NewRequest("chrome-extension://req", net::LOWEST)); | 440 NewRequest("chrome-extension://req", net::LOWEST)); |
440 EXPECT_TRUE(request->started()); | 441 EXPECT_TRUE(request->started()); |
441 } | 442 } |
442 | 443 |
443 } // unnamed namespace | 444 } // unnamed namespace |
444 | 445 |
445 } // namespace content | 446 } // namespace content |
OLD | NEW |