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

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

Issue 1003953008: Remove prerender cookie store, part 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prerender-revert-cookie-store-3
Patch Set: rebase (just in case since this is so huge) Created 5 years, 9 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 scheduler_.OnClientDeleted(kBackgroundChildId, kBackgroundRouteId); 164 scheduler_.OnClientDeleted(kBackgroundChildId, kBackgroundRouteId);
165 } 165 }
166 166
167 scoped_ptr<net::URLRequest> NewURLRequestWithChildAndRoute( 167 scoped_ptr<net::URLRequest> NewURLRequestWithChildAndRoute(
168 const char* url, 168 const char* url,
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, 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 0, // origin_pid 179 0, // origin_pid
180 ++next_request_id_, // request_id 180 ++next_request_id_, // request_id
181 MSG_ROUTING_NONE, // render_frame_id 181 MSG_ROUTING_NONE, // render_frame_id
182 false, // is_main_frame 182 false, // is_main_frame
183 false, // parent_is_main_frame 183 false, // parent_is_main_frame
184 0, // parent_render_frame_id 184 0, // parent_render_frame_id
(...skipping 2023 matching lines...) Expand 10 before | Expand all | Expand 10 after
2208 web_contents_2.reset(); 2208 web_contents_2.reset();
2209 base::RunLoop().RunUntilIdle(); 2209 base::RunLoop().RunUntilIdle();
2210 2210
2211 browser_context.reset(); 2211 browser_context.reset();
2212 render_process_host_factory.reset(); 2212 render_process_host_factory.reset();
2213 } 2213 }
2214 2214
2215 } // unnamed namespace 2215 } // unnamed namespace
2216 2216
2217 } // namespace content 2217 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/resource_loader_unittest.cc ('k') | content/browser/renderer_host/render_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698