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

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

Issue 184873004: Update resource requests to remove redundant frame ID. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update comments Created 6 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 | 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 scoped_ptr<net::URLRequest> url_request( 141 scoped_ptr<net::URLRequest> url_request(
142 context_.CreateRequest(GURL(url), priority, NULL)); 142 context_.CreateRequest(GURL(url), priority, NULL));
143 ResourceRequestInfoImpl* info = new ResourceRequestInfoImpl( 143 ResourceRequestInfoImpl* info = new ResourceRequestInfoImpl(
144 PROCESS_TYPE_RENDERER, // process_type 144 PROCESS_TYPE_RENDERER, // process_type
145 kChildId, // child_id 145 kChildId, // child_id
146 route_id, // route_id 146 route_id, // route_id
147 0, // origin_pid 147 0, // origin_pid
148 ++next_request_id_, // request_id 148 ++next_request_id_, // request_id
149 MSG_ROUTING_NONE, // render_frame_id 149 MSG_ROUTING_NONE, // render_frame_id
150 false, // is_main_frame 150 false, // is_main_frame
151 0, // frame_id
152 false, // parent_is_main_frame 151 false, // parent_is_main_frame
153 0, // parent_frame_id 152 0, // parent_render_frame_id
154 ResourceType::SUB_RESOURCE, // resource_type 153 ResourceType::SUB_RESOURCE, // resource_type
155 PAGE_TRANSITION_LINK, // transition_type 154 PAGE_TRANSITION_LINK, // transition_type
156 false, // should_replace_current_entry 155 false, // should_replace_current_entry
157 false, // is_download 156 false, // is_download
158 false, // is_stream 157 false, // is_stream
159 true, // allow_download 158 true, // allow_download
160 false, // has_user_gesture 159 false, // has_user_gesture
161 blink::WebReferrerPolicyDefault, // referrer_policy 160 blink::WebReferrerPolicyDefault, // referrer_policy
162 blink::WebPageVisibilityStateVisible, // visibility_state 161 blink::WebPageVisibilityStateVisible, // visibility_state
163 NULL, // context 162 NULL, // context
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 scheduler_.OnReceivedSpdyProxiedHttpResponse(kChildId, kRouteId); 473 scheduler_.OnReceivedSpdyProxiedHttpResponse(kChildId, kRouteId);
475 EXPECT_TRUE(request->started()); 474 EXPECT_TRUE(request->started());
476 475
477 scoped_ptr<TestRequest> after(NewRequest("http://host/after", net::IDLE)); 476 scoped_ptr<TestRequest> after(NewRequest("http://host/after", net::IDLE));
478 EXPECT_TRUE(after->started()); 477 EXPECT_TRUE(after->started());
479 } 478 }
480 479
481 } // unnamed namespace 480 } // unnamed namespace
482 481
483 } // namespace content 482 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/resource_request_info_impl.cc ('k') | content/browser/renderer_host/render_view_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698