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

Side by Side Diff: content/common/swapped_out_messages.cc

Issue 157713002: Switch DomAutomationController to be a RenderFrameObserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nasko@ CR feedback Created 6 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/common/swapped_out_messages.h" 5 #include "content/common/swapped_out_messages.h"
6 6
7 #include "content/common/accessibility_messages.h" 7 #include "content/common/accessibility_messages.h"
8 #include "content/common/frame_messages.h" 8 #include "content/common/frame_messages.h"
9 #include "content/common/input_messages.h" 9 #include "content/common/input_messages.h"
10 #include "content/common/view_messages.h" 10 #include "content/common/view_messages.h"
(...skipping 11 matching lines...) Expand all
22 case ViewHostMsg_PaintAtSize_ACK::ID: 22 case ViewHostMsg_PaintAtSize_ACK::ID:
23 case ViewHostMsg_UpdateRect::ID: 23 case ViewHostMsg_UpdateRect::ID:
24 // Allow targeted navigations while swapped out. 24 // Allow targeted navigations while swapped out.
25 case ViewHostMsg_OpenURL::ID: 25 case ViewHostMsg_OpenURL::ID:
26 case ViewHostMsg_Focus::ID: 26 case ViewHostMsg_Focus::ID:
27 // Handled by RenderViewHost. 27 // Handled by RenderViewHost.
28 case ViewHostMsg_RenderProcessGone::ID: 28 case ViewHostMsg_RenderProcessGone::ID:
29 case ViewHostMsg_ShouldClose_ACK::ID: 29 case ViewHostMsg_ShouldClose_ACK::ID:
30 case ViewHostMsg_SwapOut_ACK::ID: 30 case ViewHostMsg_SwapOut_ACK::ID:
31 case ViewHostMsg_ClosePage_ACK::ID: 31 case ViewHostMsg_ClosePage_ACK::ID:
32 case ViewHostMsg_DomOperationResponse::ID:
33 case ViewHostMsg_SwapCompositorFrame::ID: 32 case ViewHostMsg_SwapCompositorFrame::ID:
34 case ViewHostMsg_UpdateIsDelayed::ID: 33 case ViewHostMsg_UpdateIsDelayed::ID:
35 case ViewHostMsg_DidActivateAcceleratedCompositing::ID: 34 case ViewHostMsg_DidActivateAcceleratedCompositing::ID:
36 // Allow cross-process JavaScript calls. 35 // Allow cross-process JavaScript calls.
37 case ViewHostMsg_RouteCloseEvent::ID: 36 case ViewHostMsg_RouteCloseEvent::ID:
38 case ViewHostMsg_RouteMessageEvent::ID: 37 case ViewHostMsg_RouteMessageEvent::ID:
39 // Handled by RenderFrameHost. 38 // Handled by RenderFrameHost.
40 case FrameHostMsg_SwapOut_ACK::ID: 39 case FrameHostMsg_SwapOut_ACK::ID:
41 // Frame detach must occur after the RenderView has swapped out. 40 // Frame detach must occur after the RenderView has swapped out.
42 case FrameHostMsg_Detach::ID: 41 case FrameHostMsg_Detach::ID:
42 case FrameHostMsg_DomOperationResponse::ID:
43 case FrameHostMsg_CompositorFrameSwappedACK::ID: 43 case FrameHostMsg_CompositorFrameSwappedACK::ID:
44 case FrameHostMsg_BuffersSwappedACK::ID: 44 case FrameHostMsg_BuffersSwappedACK::ID:
45 case FrameHostMsg_ReclaimCompositorResources::ID: 45 case FrameHostMsg_ReclaimCompositorResources::ID:
46 // Input events propagate from parent to child. 46 // Input events propagate from parent to child.
47 case FrameHostMsg_ForwardInputEvent::ID: 47 case FrameHostMsg_ForwardInputEvent::ID:
48 return true; 48 return true;
49 default: 49 default:
50 break; 50 break;
51 } 51 }
52 52
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 default: 95 default:
96 break; 96 break;
97 } 97 }
98 98
99 // Check with the embedder as well. 99 // Check with the embedder as well.
100 ContentClient* client = GetContentClient(); 100 ContentClient* client = GetContentClient();
101 return client->CanHandleWhileSwappedOut(msg); 101 return client->CanHandleWhileSwappedOut(msg);
102 } 102 }
103 103
104 } // namespace content 104 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698