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

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

Issue 894843003: Move the RenderProcessGone IPC from RenderViewHost to RenderFrameHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for swapped out RFHs. Created 5 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
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/browser/renderer_host/render_widget_host_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 30 matching lines...) Expand all
41 #include "content/browser/renderer_host/input/timeout_monitor.h" 41 #include "content/browser/renderer_host/input/timeout_monitor.h"
42 #include "content/browser/renderer_host/input/touch_emulator.h" 42 #include "content/browser/renderer_host/input/touch_emulator.h"
43 #include "content/browser/renderer_host/render_process_host_impl.h" 43 #include "content/browser/renderer_host/render_process_host_impl.h"
44 #include "content/browser/renderer_host/render_view_host_impl.h" 44 #include "content/browser/renderer_host/render_view_host_impl.h"
45 #include "content/browser/renderer_host/render_widget_helper.h" 45 #include "content/browser/renderer_host/render_widget_helper.h"
46 #include "content/browser/renderer_host/render_widget_host_delegate.h" 46 #include "content/browser/renderer_host/render_widget_host_delegate.h"
47 #include "content/browser/renderer_host/render_widget_host_view_base.h" 47 #include "content/browser/renderer_host/render_widget_host_view_base.h"
48 #include "content/browser/renderer_host/render_widget_resize_helper.h" 48 #include "content/browser/renderer_host/render_widget_resize_helper.h"
49 #include "content/common/content_constants_internal.h" 49 #include "content/common/content_constants_internal.h"
50 #include "content/common/cursors/webcursor.h" 50 #include "content/common/cursors/webcursor.h"
51 #include "content/common/frame_messages.h"
51 #include "content/common/gpu/gpu_messages.h" 52 #include "content/common/gpu/gpu_messages.h"
52 #include "content/common/host_shared_bitmap_manager.h" 53 #include "content/common/host_shared_bitmap_manager.h"
53 #include "content/common/input_messages.h" 54 #include "content/common/input_messages.h"
54 #include "content/common/view_messages.h" 55 #include "content/common/view_messages.h"
55 #include "content/public/browser/native_web_keyboard_event.h" 56 #include "content/public/browser/native_web_keyboard_event.h"
56 #include "content/public/browser/notification_service.h" 57 #include "content/public/browser/notification_service.h"
57 #include "content/public/browser/notification_types.h" 58 #include "content/public/browser/notification_types.h"
58 #include "content/public/browser/render_widget_host_iterator.h" 59 #include "content/public/browser/render_widget_host_iterator.h"
59 #include "content/public/browser/user_metrics.h" 60 #include "content/public/browser/user_metrics.h"
60 #include "content/public/common/content_constants.h" 61 #include "content/public/common/content_constants.h"
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 return is_loading_; 439 return is_loading_;
439 } 440 }
440 441
441 bool RenderWidgetHostImpl::IsRenderView() const { 442 bool RenderWidgetHostImpl::IsRenderView() const {
442 return false; 443 return false;
443 } 444 }
444 445
445 bool RenderWidgetHostImpl::OnMessageReceived(const IPC::Message &msg) { 446 bool RenderWidgetHostImpl::OnMessageReceived(const IPC::Message &msg) {
446 bool handled = true; 447 bool handled = true;
447 IPC_BEGIN_MESSAGE_MAP(RenderWidgetHostImpl, msg) 448 IPC_BEGIN_MESSAGE_MAP(RenderWidgetHostImpl, msg)
449 IPC_MESSAGE_HANDLER(FrameHostMsg_RenderProcessGone, OnRenderProcessGone)
448 IPC_MESSAGE_HANDLER(InputHostMsg_QueueSyntheticGesture, 450 IPC_MESSAGE_HANDLER(InputHostMsg_QueueSyntheticGesture,
449 OnQueueSyntheticGesture) 451 OnQueueSyntheticGesture)
450 IPC_MESSAGE_HANDLER(InputHostMsg_ImeCancelComposition, 452 IPC_MESSAGE_HANDLER(InputHostMsg_ImeCancelComposition,
451 OnImeCancelComposition) 453 OnImeCancelComposition)
452 IPC_MESSAGE_HANDLER(ViewHostMsg_RenderViewReady, OnRenderViewReady) 454 IPC_MESSAGE_HANDLER(ViewHostMsg_RenderViewReady, OnRenderViewReady)
453 IPC_MESSAGE_HANDLER(ViewHostMsg_RenderProcessGone, OnRenderProcessGone)
454 IPC_MESSAGE_HANDLER(ViewHostMsg_Close, OnClose) 455 IPC_MESSAGE_HANDLER(ViewHostMsg_Close, OnClose)
455 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateScreenRects_ACK, 456 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateScreenRects_ACK,
456 OnUpdateScreenRectsAck) 457 OnUpdateScreenRectsAck)
457 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestMove, OnRequestMove) 458 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestMove, OnRequestMove)
458 IPC_MESSAGE_HANDLER(ViewHostMsg_SetTooltipText, OnSetTooltipText) 459 IPC_MESSAGE_HANDLER(ViewHostMsg_SetTooltipText, OnSetTooltipText)
459 IPC_MESSAGE_HANDLER_GENERIC(ViewHostMsg_SwapCompositorFrame, 460 IPC_MESSAGE_HANDLER_GENERIC(ViewHostMsg_SwapCompositorFrame,
460 OnSwapCompositorFrame(msg)) 461 OnSwapCompositorFrame(msg))
461 IPC_MESSAGE_HANDLER(ViewHostMsg_DidStopFlinging, OnFlingingStopped) 462 IPC_MESSAGE_HANDLER(ViewHostMsg_DidStopFlinging, OnFlingingStopped)
462 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateRect, OnUpdateRect) 463 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateRect, OnUpdateRect)
463 IPC_MESSAGE_HANDLER(ViewHostMsg_Focus, OnFocus) 464 IPC_MESSAGE_HANDLER(ViewHostMsg_Focus, OnFocus)
(...skipping 1733 matching lines...) Expand 10 before | Expand all | Expand 10 after
2197 } 2198 }
2198 #endif 2199 #endif
2199 2200
2200 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() { 2201 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() {
2201 if (view_) 2202 if (view_)
2202 return view_->PreferredReadbackFormat(); 2203 return view_->PreferredReadbackFormat();
2203 return kN32_SkColorType; 2204 return kN32_SkColorType;
2204 } 2205 }
2205 2206
2206 } // namespace content 2207 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698