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

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

Issue 1079163008: PlzNavigate: provide the FrameTreeNode ID to the network stack (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix-unittests
Patch Set: Rebase + addressed Nasko's comments Created 5 years, 7 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/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 net::RequestPriority priority, 169 net::RequestPriority priority,
170 int child_id, 170 int child_id,
171 int route_id, 171 int route_id,
172 bool is_async) { 172 bool is_async) {
173 scoped_ptr<net::URLRequest> url_request( 173 scoped_ptr<net::URLRequest> url_request(
174 context_.CreateRequest(GURL(url), priority, NULL)); 174 context_.CreateRequest(GURL(url), priority, NULL));
175 ResourceRequestInfoImpl* info = new ResourceRequestInfoImpl( 175 ResourceRequestInfoImpl* info = new ResourceRequestInfoImpl(
176 PROCESS_TYPE_RENDERER, // process_type 176 PROCESS_TYPE_RENDERER, // process_type
177 child_id, // child_id 177 child_id, // child_id
178 route_id, // route_id 178 route_id, // route_id
179 -1, // frame_tree_node_id
179 0, // origin_pid 180 0, // origin_pid
180 ++next_request_id_, // request_id 181 ++next_request_id_, // request_id
181 MSG_ROUTING_NONE, // render_frame_id 182 MSG_ROUTING_NONE, // render_frame_id
182 false, // is_main_frame 183 false, // is_main_frame
183 false, // parent_is_main_frame 184 false, // parent_is_main_frame
184 0, // parent_render_frame_id 185 0, // parent_render_frame_id
185 RESOURCE_TYPE_SUB_RESOURCE, // resource_type 186 RESOURCE_TYPE_SUB_RESOURCE, // resource_type
186 ui::PAGE_TRANSITION_LINK, // transition_type 187 ui::PAGE_TRANSITION_LINK, // transition_type
187 false, // should_replace_current_entry 188 false, // should_replace_current_entry
188 false, // is_download 189 false, // is_download
(...skipping 2019 matching lines...) Expand 10 before | Expand all | Expand 10 after
2208 web_contents_2.reset(); 2209 web_contents_2.reset();
2209 base::RunLoop().RunUntilIdle(); 2210 base::RunLoop().RunUntilIdle();
2210 2211
2211 browser_context.reset(); 2212 browser_context.reset();
2212 render_process_host_factory.reset(); 2213 render_process_host_factory.reset();
2213 } 2214 }
2214 2215
2215 } // unnamed namespace 2216 } // unnamed namespace
2216 2217
2217 } // namespace content 2218 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/resource_request_info_impl.cc ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698