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

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 typo Created 8 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/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 5587 matching lines...) Expand 10 before | Expand all | Expand 10 after
5598 // of loading and we don't want to save stats. 5598 // of loading and we don't want to save stats.
5599 if (!main_frame->provisionalDataSource()) { 5599 if (!main_frame->provisionalDataSource()) {
5600 WebDataSource* ds = main_frame->dataSource(); 5600 WebDataSource* ds = main_frame->dataSource();
5601 DocumentState* document_state = DocumentState::FromDataSource(ds); 5601 DocumentState* document_state = DocumentState::FromDataSource(ds);
5602 5602
5603 // TODO(jar): The following code should all be inside a method, probably in 5603 // TODO(jar): The following code should all be inside a method, probably in
5604 // NavigatorState. 5604 // NavigatorState.
5605 Time now = Time::Now(); 5605 Time now = Time::Now();
5606 if (document_state->first_paint_time().is_null()) { 5606 if (document_state->first_paint_time().is_null()) {
5607 document_state->set_first_paint_time(now); 5607 document_state->set_first_paint_time(now);
5608 Send(new ViewHostMsg_DidFirstPaint(routing_id()));
5608 } 5609 }
5609 if (document_state->first_paint_after_load_time().is_null() && 5610 if (document_state->first_paint_after_load_time().is_null() &&
5610 !document_state->finish_load_time().is_null()) { 5611 !document_state->finish_load_time().is_null()) {
5611 document_state->set_first_paint_after_load_time(now); 5612 document_state->set_first_paint_after_load_time(now);
5612 } 5613 }
5613 } 5614 }
5614 } 5615 }
5615 5616
5616 void RenderViewImpl::OnViewContextSwapBuffersPosted() { 5617 void RenderViewImpl::OnViewContextSwapBuffersPosted() {
5617 RenderWidget::OnSwapBuffersPosted(); 5618 RenderWidget::OnSwapBuffersPosted();
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after
6481 } 6482 }
6482 #endif 6483 #endif
6483 6484
6484 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( 6485 void RenderViewImpl::OnReleaseDisambiguationPopupDIB(
6485 TransportDIB::Handle dib_handle) { 6486 TransportDIB::Handle dib_handle) {
6486 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); 6487 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle);
6487 RenderProcess::current()->ReleaseTransportDIB(dib); 6488 RenderProcess::current()->ReleaseTransportDIB(dib);
6488 } 6489 }
6489 6490
6490 } // namespace content 6491 } // 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