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

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

Issue 107183002: Move more of the plugin code in the renderer to use RenderFrame instead of RenderView. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 7 years 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 | Annotate | Revision Log
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/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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 net::RequestPriority priority, 141 net::RequestPriority priority,
142 int route_id) { 142 int route_id) {
143 scoped_ptr<net::URLRequest> url_request( 143 scoped_ptr<net::URLRequest> url_request(
144 context_.CreateRequest(GURL(url), priority, NULL)); 144 context_.CreateRequest(GURL(url), priority, NULL));
145 ResourceRequestInfoImpl* info = new ResourceRequestInfoImpl( 145 ResourceRequestInfoImpl* info = new ResourceRequestInfoImpl(
146 PROCESS_TYPE_RENDERER, // process_type 146 PROCESS_TYPE_RENDERER, // process_type
147 kChildId, // child_id 147 kChildId, // child_id
148 route_id, // route_id 148 route_id, // route_id
149 0, // origin_pid 149 0, // origin_pid
150 ++next_request_id_, // request_id 150 ++next_request_id_, // request_id
151 MSG_ROUTING_NONE, // render_frame_id
151 false, // is_main_frame 152 false, // is_main_frame
152 0, // frame_id 153 0, // frame_id
153 false, // parent_is_main_frame 154 false, // parent_is_main_frame
154 0, // parent_frame_id 155 0, // parent_frame_id
155 ResourceType::SUB_RESOURCE, // resource_type 156 ResourceType::SUB_RESOURCE, // resource_type
156 PAGE_TRANSITION_LINK, // transition_type 157 PAGE_TRANSITION_LINK, // transition_type
157 false, // should_replace_current_entry 158 false, // should_replace_current_entry
158 false, // is_download 159 false, // is_download
159 false, // is_stream 160 false, // is_stream
160 true, // allow_download 161 true, // allow_download
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 scoped_ptr<TestRequest> low(NewRequest("http://host/high", net::LOWEST)); 461 scoped_ptr<TestRequest> low(NewRequest("http://host/high", net::LOWEST));
461 462
462 scoped_ptr<TestRequest> request( 463 scoped_ptr<TestRequest> request(
463 NewRequest("chrome-extension://req", net::LOWEST)); 464 NewRequest("chrome-extension://req", net::LOWEST));
464 EXPECT_TRUE(request->started()); 465 EXPECT_TRUE(request->started());
465 } 466 }
466 467
467 } // unnamed namespace 468 } // unnamed namespace
468 469
469 } // namespace content 470 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/resource_request_info_impl.cc ('k') | content/browser/plugin_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698