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

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: Use new WebKit signals Created 7 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 | 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/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 4435 matching lines...) Expand 10 before | Expand all | Expand 10 after
4446 4446
4447 void RenderViewImpl::didLoseWebGLContext( 4447 void RenderViewImpl::didLoseWebGLContext(
4448 WebKit::WebFrame* frame, 4448 WebKit::WebFrame* frame,
4449 int arb_robustness_status_code) { 4449 int arb_robustness_status_code) {
4450 Send(new ViewHostMsg_DidLose3DContext( 4450 Send(new ViewHostMsg_DidLose3DContext(
4451 GURL(frame->top()->document().securityOrigin().toString()), 4451 GURL(frame->top()->document().securityOrigin().toString()),
4452 THREE_D_API_TYPE_WEBGL, 4452 THREE_D_API_TYPE_WEBGL,
4453 arb_robustness_status_code)); 4453 arb_robustness_status_code));
4454 } 4454 }
4455 4455
4456 void RenderViewImpl::willInsertBody(WebKit::WebFrame* frame) {
4457 if (!frame->parent()) {
4458 Send(new ViewHostMsg_WillInsertBody(routing_id()));
4459 }
4460 }
4461
4456 // WebKit::WebPageSerializerClient implementation ------------------------------ 4462 // WebKit::WebPageSerializerClient implementation ------------------------------
4457 4463
4458 void RenderViewImpl::didSerializeDataForFrame( 4464 void RenderViewImpl::didSerializeDataForFrame(
4459 const WebURL& frame_url, 4465 const WebURL& frame_url,
4460 const WebCString& data, 4466 const WebCString& data,
4461 WebPageSerializerClient::PageSerializationStatus status) { 4467 WebPageSerializerClient::PageSerializationStatus status) {
4462 Send(new ViewHostMsg_SendSerializedHtmlData( 4468 Send(new ViewHostMsg_SendSerializedHtmlData(
4463 routing_id(), 4469 routing_id(),
4464 frame_url, 4470 frame_url,
4465 data.data(), 4471 data.data(),
(...skipping 2188 matching lines...) Expand 10 before | Expand all | Expand 10 after
6654 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); 6660 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle);
6655 RenderProcess::current()->ReleaseTransportDIB(dib); 6661 RenderProcess::current()->ReleaseTransportDIB(dib);
6656 } 6662 }
6657 6663
6658 void RenderViewImpl::DidCommitCompositorFrame() { 6664 void RenderViewImpl::DidCommitCompositorFrame() {
6659 RenderWidget::DidCommitCompositorFrame(); 6665 RenderWidget::DidCommitCompositorFrame();
6660 FOR_EACH_OBSERVER(RenderViewObserver, observers_, DidCommitCompositorFrame()); 6666 FOR_EACH_OBSERVER(RenderViewObserver, observers_, DidCommitCompositorFrame());
6661 } 6667 }
6662 6668
6663 } // namespace content 6669 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698