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

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

Issue 12243002: Pass WebKit priority changes and parsing messages up to the browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename IPC 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/bind.h" 10 #include "base/bind.h"
(...skipping 4457 matching lines...) Expand 10 before | Expand all | Expand 10 after
4468 4468
4469 void RenderViewImpl::didLoseWebGLContext( 4469 void RenderViewImpl::didLoseWebGLContext(
4470 WebKit::WebFrame* frame, 4470 WebKit::WebFrame* frame,
4471 int arb_robustness_status_code) { 4471 int arb_robustness_status_code) {
4472 Send(new ViewHostMsg_DidLose3DContext( 4472 Send(new ViewHostMsg_DidLose3DContext(
4473 GURL(frame->top()->document().securityOrigin().toString()), 4473 GURL(frame->top()->document().securityOrigin().toString()),
4474 THREE_D_API_TYPE_WEBGL, 4474 THREE_D_API_TYPE_WEBGL,
4475 arb_robustness_status_code)); 4475 arb_robustness_status_code));
4476 } 4476 }
4477 4477
4478 void RenderViewImpl::willInsertBody(WebKit::WebFrame* frame) {
4479 if (!frame->parent()) {
4480 Send(new ViewHostMsg_WillInsertBody(routing_id()));
4481 }
4482 }
4483
4478 // WebKit::WebPageSerializerClient implementation ------------------------------ 4484 // WebKit::WebPageSerializerClient implementation ------------------------------
4479 4485
4480 void RenderViewImpl::didSerializeDataForFrame( 4486 void RenderViewImpl::didSerializeDataForFrame(
4481 const WebURL& frame_url, 4487 const WebURL& frame_url,
4482 const WebCString& data, 4488 const WebCString& data,
4483 WebPageSerializerClient::PageSerializationStatus status) { 4489 WebPageSerializerClient::PageSerializationStatus status) {
4484 Send(new ViewHostMsg_SendSerializedHtmlData( 4490 Send(new ViewHostMsg_SendSerializedHtmlData(
4485 routing_id(), 4491 routing_id(),
4486 frame_url, 4492 frame_url,
4487 data.data(), 4493 data.data(),
(...skipping 2173 matching lines...) Expand 10 before | Expand all | Expand 10 after
6661 } 6667 }
6662 #endif 6668 #endif
6663 6669
6664 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( 6670 void RenderViewImpl::OnReleaseDisambiguationPopupDIB(
6665 TransportDIB::Handle dib_handle) { 6671 TransportDIB::Handle dib_handle) {
6666 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); 6672 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle);
6667 RenderProcess::current()->ReleaseTransportDIB(dib); 6673 RenderProcess::current()->ReleaseTransportDIB(dib);
6668 } 6674 }
6669 6675
6670 } // namespace content 6676 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698