| 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/view_messages.h" | 8 #include "content/common/view_messages.h" |
| 9 #include "content/public/common/content_client.h" | 9 #include "content/public/common/content_client.h" |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 case ViewHostMsg_UpdateRect::ID: | 21 case ViewHostMsg_UpdateRect::ID: |
| 22 // Allow targeted navigations while swapped out. | 22 // Allow targeted navigations while swapped out. |
| 23 case ViewHostMsg_OpenURL::ID: | 23 case ViewHostMsg_OpenURL::ID: |
| 24 case ViewHostMsg_Focus::ID: | 24 case ViewHostMsg_Focus::ID: |
| 25 // Handled by RenderView. | 25 // Handled by RenderView. |
| 26 case ViewHostMsg_RenderViewGone::ID: | 26 case ViewHostMsg_RenderViewGone::ID: |
| 27 case ViewHostMsg_ShouldClose_ACK::ID: | 27 case ViewHostMsg_ShouldClose_ACK::ID: |
| 28 case ViewHostMsg_SwapOut_ACK::ID: | 28 case ViewHostMsg_SwapOut_ACK::ID: |
| 29 case ViewHostMsg_ClosePage_ACK::ID: | 29 case ViewHostMsg_ClosePage_ACK::ID: |
| 30 case ViewHostMsg_DomOperationResponse::ID: | 30 case ViewHostMsg_DomOperationResponse::ID: |
| 31 // Allow cross-process JavaScript calls. |
| 32 case ViewHostMsg_RouteCloseEvent::ID: |
| 31 return true; | 33 return true; |
| 32 default: | 34 default: |
| 33 break; | 35 break; |
| 34 } | 36 } |
| 35 | 37 |
| 36 return false; | 38 return false; |
| 37 } | 39 } |
| 38 | 40 |
| 39 bool SwappedOutMessages::CanHandleWhileSwappedOut( | 41 bool SwappedOutMessages::CanHandleWhileSwappedOut( |
| 40 const IPC::Message& msg) { | 42 const IPC::Message& msg) { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 default: | 78 default: |
| 77 break; | 79 break; |
| 78 } | 80 } |
| 79 | 81 |
| 80 // Check with the embedder as well. | 82 // Check with the embedder as well. |
| 81 ContentClient* client = GetContentClient(); | 83 ContentClient* client = GetContentClient(); |
| 82 return client->CanHandleWhileSwappedOut(msg); | 84 return client->CanHandleWhileSwappedOut(msg); |
| 83 } | 85 } |
| 84 | 86 |
| 85 } // namespace content | 87 } // namespace content |
| OLD | NEW |