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

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

Issue 2655393004: Make ResourceScheduler work in OOPIF (Closed)
Patch Set: Make ResourceScheduler work in OOPIF Created 3 years, 10 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
« no previous file with comments | « no previous file | content/browser/loader/resource_scheduler_filter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stdint.h> 7 #include <stdint.h>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 void OnLoadingStateChanged(bool is_loaded) { 414 void OnLoadingStateChanged(bool is_loaded) {
415 is_loaded_ = is_loaded; 415 is_loaded_ = is_loaded;
416 } 416 }
417 417
418 void OnNavigate() { 418 void OnNavigate() {
419 has_html_body_ = false; 419 has_html_body_ = false;
420 is_loaded_ = false; 420 is_loaded_ = false;
421 } 421 }
422 422
423 void OnWillInsertBody() { 423 void OnWillInsertBody() {
424 // Can be called multiple times per RVH in the case of out-of-process
425 // iframes.
426 if (has_html_body_)
427 return;
424 has_html_body_ = true; 428 has_html_body_ = true;
425 LoadAnyStartablePendingRequests(RequestStartTrigger::BODY_REACHED); 429 LoadAnyStartablePendingRequests(RequestStartTrigger::BODY_REACHED);
426 } 430 }
427 431
428 void OnReceivedSpdyProxiedHttpResponse() { 432 void OnReceivedSpdyProxiedHttpResponse() {
429 if (!using_spdy_proxy_) { 433 if (!using_spdy_proxy_) {
430 using_spdy_proxy_ = true; 434 using_spdy_proxy_ = true;
431 LoadAnyStartablePendingRequests(RequestStartTrigger::SPDY_PROXY_DETECTED); 435 LoadAnyStartablePendingRequests(RequestStartTrigger::SPDY_PROXY_DETECTED);
432 } 436 }
433 } 437 }
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 client->ReprioritizeRequest(scheduled_resource_request, old_priority_params, 964 client->ReprioritizeRequest(scheduled_resource_request, old_priority_params,
961 new_priority_params); 965 new_priority_params);
962 } 966 }
963 967
964 ResourceScheduler::ClientId ResourceScheduler::MakeClientId( 968 ResourceScheduler::ClientId ResourceScheduler::MakeClientId(
965 int child_id, int route_id) { 969 int child_id, int route_id) {
966 return (static_cast<ResourceScheduler::ClientId>(child_id) << 32) | route_id; 970 return (static_cast<ResourceScheduler::ClientId>(child_id) << 32) | route_id;
967 } 971 }
968 972
969 } // namespace content 973 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/loader/resource_scheduler_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698