| OLD | NEW |
| 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 27 matching lines...) Expand all Loading... |
| 38 case FrameHostMsg_BeforeUnload_ACK::ID: | 38 case FrameHostMsg_BeforeUnload_ACK::ID: |
| 39 case FrameHostMsg_SwapOut_ACK::ID: | 39 case FrameHostMsg_SwapOut_ACK::ID: |
| 40 case FrameHostMsg_RenderProcessGone::ID: | 40 case FrameHostMsg_RenderProcessGone::ID: |
| 41 // Frame detach must occur after the RenderView has swapped out. | 41 // Frame detach must occur after the RenderView has swapped out. |
| 42 case FrameHostMsg_Detach::ID: | 42 case FrameHostMsg_Detach::ID: |
| 43 case FrameHostMsg_DomOperationResponse::ID: | 43 case FrameHostMsg_DomOperationResponse::ID: |
| 44 // Input events propagate from parent to child. | 44 // Input events propagate from parent to child. |
| 45 case FrameHostMsg_ForwardInputEvent::ID: | 45 case FrameHostMsg_ForwardInputEvent::ID: |
| 46 // A swapped-out frame's opener might be updated with window.open. | 46 // A swapped-out frame's opener might be updated with window.open. |
| 47 case FrameHostMsg_DidChangeOpener::ID: | 47 case FrameHostMsg_DidChangeOpener::ID: |
| 48 // For handling pop-ups from cross-site frames. | |
| 49 case ViewHostMsg_CreateWidget::ID: | |
| 50 return true; | 48 return true; |
| 51 default: | 49 default: |
| 52 break; | 50 break; |
| 53 } | 51 } |
| 54 | 52 |
| 55 // Check with the embedder as well. | 53 // Check with the embedder as well. |
| 56 ContentClient* client = GetContentClient(); | 54 ContentClient* client = GetContentClient(); |
| 57 return client->CanSendWhileSwappedOut(msg); | 55 return client->CanSendWhileSwappedOut(msg); |
| 58 } | 56 } |
| 59 | 57 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 88 case AccessibilityHostMsg_Events::ID: | 86 case AccessibilityHostMsg_Events::ID: |
| 89 return true; | 87 return true; |
| 90 default: | 88 default: |
| 91 break; | 89 break; |
| 92 } | 90 } |
| 93 | 91 |
| 94 return false; | 92 return false; |
| 95 } | 93 } |
| 96 | 94 |
| 97 } // namespace content | 95 } // namespace content |
| OLD | NEW |