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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 12087129: Move kChromeSearchScheme out of content since it's a chrome feature. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after
1154 1154
1155 void RenderProcessHostImpl::Cleanup() { 1155 void RenderProcessHostImpl::Cleanup() {
1156 // When no other owners of this object, we can delete ourselves 1156 // When no other owners of this object, we can delete ourselves
1157 if (render_widget_hosts_.IsEmpty()) { 1157 if (render_widget_hosts_.IsEmpty()) {
1158 DCHECK_EQ(0, pending_views_); 1158 DCHECK_EQ(0, pending_views_);
1159 NotificationService::current()->Notify( 1159 NotificationService::current()->Notify(
1160 NOTIFICATION_RENDERER_PROCESS_TERMINATED, 1160 NOTIFICATION_RENDERER_PROCESS_TERMINATED,
1161 Source<RenderProcessHost>(this), 1161 Source<RenderProcessHost>(this),
1162 NotificationService::NoDetails()); 1162 NotificationService::NoDetails());
1163 1163
1164 GetContentClient()->browser()->RenderProcessHostDeleted(this);
1165
1166 MessageLoop::current()->DeleteSoon(FROM_HERE, this); 1164 MessageLoop::current()->DeleteSoon(FROM_HERE, this);
1167 deleting_soon_ = true; 1165 deleting_soon_ = true;
1168 // It's important not to wait for the DeleteTask to delete the channel 1166 // It's important not to wait for the DeleteTask to delete the channel
1169 // proxy. Kill it off now. That way, in case the profile is going away, the 1167 // proxy. Kill it off now. That way, in case the profile is going away, the
1170 // rest of the objects attached to this RenderProcessHost start going 1168 // rest of the objects attached to this RenderProcessHost start going
1171 // away first, since deleting the channel proxy will post a 1169 // away first, since deleting the channel proxy will post a
1172 // OnChannelClosed() to IPC::ChannelProxy::Context on the IO thread. 1170 // OnChannelClosed() to IPC::ChannelProxy::Context on the IO thread.
1173 channel_.reset(); 1171 channel_.reset();
1174 gpu_message_filter_ = NULL; 1172 gpu_message_filter_ = NULL;
1175 1173
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
1610 TRACE_EVENT0("renderer_host", 1608 TRACE_EVENT0("renderer_host",
1611 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); 1609 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost");
1612 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; 1610 AcceleratedSurfaceMsg_BufferPresented_Params ack_params;
1613 ack_params.sync_point = 0; 1611 ack_params.sync_point = 0;
1614 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, 1612 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id,
1615 gpu_process_host_id, 1613 gpu_process_host_id,
1616 ack_params); 1614 ack_params);
1617 } 1615 }
1618 1616
1619 } // namespace content 1617 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698