| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 // Updates the previous navigation entry. | 81 // Updates the previous navigation entry. |
| 82 case ViewHostMsg_UpdateState::ID: | 82 case ViewHostMsg_UpdateState::ID: |
| 83 // Sends an ACK. | 83 // Sends an ACK. |
| 84 case ViewHostMsg_UpdateTargetURL::ID: | 84 case ViewHostMsg_UpdateTargetURL::ID: |
| 85 // We allow closing even if we are in the process of swapping out. | 85 // We allow closing even if we are in the process of swapping out. |
| 86 case ViewHostMsg_Close::ID: | 86 case ViewHostMsg_Close::ID: |
| 87 // Sends an ACK. | 87 // Sends an ACK. |
| 88 case ViewHostMsg_RequestMove::ID: | 88 case ViewHostMsg_RequestMove::ID: |
| 89 // Sends an ACK. | 89 // Sends an ACK. |
| 90 case AccessibilityHostMsg_Events::ID: | 90 case AccessibilityHostMsg_Events::ID: |
| 91 #if defined(USE_X11) | |
| 92 // Synchronous message when leaving a page with plugin. In this case, | |
| 93 // we want to destroy the plugin rather than return an error message. | |
| 94 case ViewHostMsg_DestroyPluginContainer::ID: | |
| 95 #endif | |
| 96 return true; | 91 return true; |
| 97 default: | 92 default: |
| 98 break; | 93 break; |
| 99 } | 94 } |
| 100 | 95 |
| 101 // Check with the embedder as well. | 96 // Check with the embedder as well. |
| 102 ContentClient* client = GetContentClient(); | 97 ContentClient* client = GetContentClient(); |
| 103 return client->CanHandleWhileSwappedOut(msg); | 98 return client->CanHandleWhileSwappedOut(msg); |
| 104 } | 99 } |
| 105 | 100 |
| 106 } // namespace content | 101 } // namespace content |
| OLD | NEW |