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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 11270027: Add a ResourceScheduler to ResourceDispatcherHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Win build Created 7 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/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 5650 matching lines...) Expand 10 before | Expand all | Expand 10 after
5661 // of loading and we don't want to save stats. 5661 // of loading and we don't want to save stats.
5662 if (!main_frame->provisionalDataSource()) { 5662 if (!main_frame->provisionalDataSource()) {
5663 WebDataSource* ds = main_frame->dataSource(); 5663 WebDataSource* ds = main_frame->dataSource();
5664 DocumentState* document_state = DocumentState::FromDataSource(ds); 5664 DocumentState* document_state = DocumentState::FromDataSource(ds);
5665 5665
5666 // TODO(jar): The following code should all be inside a method, probably in 5666 // TODO(jar): The following code should all be inside a method, probably in
5667 // NavigatorState. 5667 // NavigatorState.
5668 Time now = Time::Now(); 5668 Time now = Time::Now();
5669 if (document_state->first_paint_time().is_null()) { 5669 if (document_state->first_paint_time().is_null()) {
5670 document_state->set_first_paint_time(now); 5670 document_state->set_first_paint_time(now);
5671 Send(new ViewHostMsg_DidFirstPaint(routing_id()));
5671 } 5672 }
5672 if (document_state->first_paint_after_load_time().is_null() && 5673 if (document_state->first_paint_after_load_time().is_null() &&
5673 !document_state->finish_load_time().is_null()) { 5674 !document_state->finish_load_time().is_null()) {
5674 document_state->set_first_paint_after_load_time(now); 5675 document_state->set_first_paint_after_load_time(now);
5675 } 5676 }
5676 } 5677 }
5677 } 5678 }
5678 5679
5679 void RenderViewImpl::OnViewContextSwapBuffersPosted() { 5680 void RenderViewImpl::OnViewContextSwapBuffersPosted() {
5680 RenderWidget::OnSwapBuffersPosted(); 5681 RenderWidget::OnSwapBuffersPosted();
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after
6553 } 6554 }
6554 #endif 6555 #endif
6555 6556
6556 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( 6557 void RenderViewImpl::OnReleaseDisambiguationPopupDIB(
6557 TransportDIB::Handle dib_handle) { 6558 TransportDIB::Handle dib_handle) {
6558 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); 6559 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle);
6559 RenderProcess::current()->ReleaseTransportDIB(dib); 6560 RenderProcess::current()->ReleaseTransportDIB(dib);
6560 } 6561 }
6561 6562
6562 } // namespace content 6563 } // namespace content
OLDNEW
« content/browser/loader/resource_scheduler.cc ('K') | « content/content_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698