Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(315)

Side by Side Diff: content/browser/loader/resource_scheduler_unittest.cc

Issue 1271733002: [2/3 chromium] Support redirect option of Request and "opaqueredirect" response type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on 1272623002 Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 -1, // frame_tree_node_id 210 -1, // frame_tree_node_id
211 0, // origin_pid 211 0, // origin_pid
212 ++next_request_id_, // request_id 212 ++next_request_id_, // request_id
213 MSG_ROUTING_NONE, // render_frame_id 213 MSG_ROUTING_NONE, // render_frame_id
214 false, // is_main_frame 214 false, // is_main_frame
215 false, // parent_is_main_frame 215 false, // parent_is_main_frame
216 0, // parent_render_frame_id 216 0, // parent_render_frame_id
217 RESOURCE_TYPE_SUB_RESOURCE, // resource_type 217 RESOURCE_TYPE_SUB_RESOURCE, // resource_type
218 ui::PAGE_TRANSITION_LINK, // transition_type 218 ui::PAGE_TRANSITION_LINK, // transition_type
219 false, // should_replace_current_entry 219 false, // should_replace_current_entry
220 FETCH_REDIRECT_MODE_FOLLOW, // fetch_redirect_mode
220 false, // is_download 221 false, // is_download
221 false, // is_stream 222 false, // is_stream
222 true, // allow_download 223 true, // allow_download
223 false, // has_user_gesture 224 false, // has_user_gesture
224 false, // enable_load_timing 225 false, // enable_load_timing
225 false, // enable_upload_progress 226 false, // enable_upload_progress
226 false, // do_not_prompt_for_login 227 false, // do_not_prompt_for_login
227 blink::WebReferrerPolicyDefault, // referrer_policy 228 blink::WebReferrerPolicyDefault, // referrer_policy
228 blink::WebPageVisibilityStateVisible, // visibility_state 229 blink::WebPageVisibilityStateVisible, // visibility_state
229 NULL, // context 230 NULL, // context
(...skipping 2126 matching lines...) Expand 10 before | Expand all | Expand 10 after
2356 EXPECT_FALSE(lowest->started()); 2357 EXPECT_FALSE(lowest->started());
2357 scheduler_->OnClientDeleted(kChildId2, kRouteId2); 2358 scheduler_->OnClientDeleted(kChildId2, kRouteId2);
2358 high.reset(); 2359 high.reset();
2359 delayable_requests.clear(); 2360 delayable_requests.clear();
2360 EXPECT_TRUE(lowest->started()); 2361 EXPECT_TRUE(lowest->started());
2361 } 2362 }
2362 2363
2363 } // unnamed namespace 2364 } // unnamed namespace
2364 2365
2365 } // namespace content 2366 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698