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

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

Issue 141163002: Make PrerenderTracker's resource_throttle_io_thread_map_ use RenderFrame IDs instead of RenderView … (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: simplify code Created 6 years, 11 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 0, // frame_id 152 0, // frame_id
153 false, // parent_is_main_frame 153 false, // parent_is_main_frame
154 0, // parent_frame_id 154 0, // parent_frame_id
155 ResourceType::SUB_RESOURCE, // resource_type 155 ResourceType::SUB_RESOURCE, // resource_type
156 PAGE_TRANSITION_LINK, // transition_type 156 PAGE_TRANSITION_LINK, // transition_type
157 false, // should_replace_current_entry 157 false, // should_replace_current_entry
158 false, // is_download 158 false, // is_download
159 false, // is_stream 159 false, // is_stream
160 true, // allow_download 160 true, // allow_download
161 false, // has_user_gesture 161 false, // has_user_gesture
162 blink::WebReferrerPolicyDefault, // referrer_policy 162 blink::WebReferrerPolicyDefault, // referrer_policy
163 blink::WebPageVisibilityStateVisible, // visibility_state
163 NULL, // context 164 NULL, // context
164 base::WeakPtr<ResourceMessageFilter>(), // filter 165 base::WeakPtr<ResourceMessageFilter>(), // filter
165 true); // is_async 166 true); // is_async
166 info->AssociateWithRequest(url_request.get()); 167 info->AssociateWithRequest(url_request.get());
167 return url_request.Pass(); 168 return url_request.Pass();
168 } 169 }
169 170
170 scoped_ptr<net::URLRequest> NewURLRequest(const char* url, 171 scoped_ptr<net::URLRequest> NewURLRequest(const char* url,
171 net::RequestPriority priority) { 172 net::RequestPriority priority) {
172 return NewURLRequestWithRoute(url, priority, kRouteId); 173 return NewURLRequestWithRoute(url, priority, kRouteId);
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 scheduler_.OnReceivedSpdyProxiedHttpResponse(kChildId, kRouteId); 475 scheduler_.OnReceivedSpdyProxiedHttpResponse(kChildId, kRouteId);
475 EXPECT_TRUE(request->started()); 476 EXPECT_TRUE(request->started());
476 477
477 scoped_ptr<TestRequest> after(NewRequest("http://host/after", net::IDLE)); 478 scoped_ptr<TestRequest> after(NewRequest("http://host/after", net::IDLE));
478 EXPECT_TRUE(after->started()); 479 EXPECT_TRUE(after->started());
479 } 480 }
480 481
481 } // unnamed namespace 482 } // unnamed namespace
482 483
483 } // namespace content 484 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698