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/input_messages.h" | 8 #include "content/common/input_messages.h" |
9 #include "content/common/view_messages.h" | 9 #include "content/common/view_messages.h" |
10 #include "content/public/common/content_client.h" | 10 #include "content/public/common/content_client.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 case ViewHostMsg_RenderViewReady::ID: | 68 case ViewHostMsg_RenderViewReady::ID: |
69 // Updates the previous navigation entry. | 69 // Updates the previous navigation entry. |
70 case ViewHostMsg_UpdateState::ID: | 70 case ViewHostMsg_UpdateState::ID: |
71 // Sends an ACK. | 71 // Sends an ACK. |
72 case ViewHostMsg_UpdateTargetURL::ID: | 72 case ViewHostMsg_UpdateTargetURL::ID: |
73 // We allow closing even if we are in the process of swapping out. | 73 // We allow closing even if we are in the process of swapping out. |
74 case ViewHostMsg_Close::ID: | 74 case ViewHostMsg_Close::ID: |
75 // Sends an ACK. | 75 // Sends an ACK. |
76 case ViewHostMsg_RequestMove::ID: | 76 case ViewHostMsg_RequestMove::ID: |
77 // Sends an ACK. | 77 // Sends an ACK. |
78 case AccessibilityHostMsg_Notifications::ID: | 78 case AccessibilityHostMsg_Events::ID: |
79 #if defined(USE_X11) | 79 #if defined(USE_X11) |
80 // Synchronous message when leaving a page with plugin. In this case, | 80 // Synchronous message when leaving a page with plugin. In this case, |
81 // we want to destroy the plugin rather than return an error message. | 81 // we want to destroy the plugin rather than return an error message. |
82 case ViewHostMsg_DestroyPluginContainer::ID: | 82 case ViewHostMsg_DestroyPluginContainer::ID: |
83 #endif | 83 #endif |
84 return true; | 84 return true; |
85 default: | 85 default: |
86 break; | 86 break; |
87 } | 87 } |
88 | 88 |
89 // Check with the embedder as well. | 89 // Check with the embedder as well. |
90 ContentClient* client = GetContentClient(); | 90 ContentClient* client = GetContentClient(); |
91 return client->CanHandleWhileSwappedOut(msg); | 91 return client->CanHandleWhileSwappedOut(msg); |
92 } | 92 } |
93 | 93 |
94 } // namespace content | 94 } // namespace content |
OLD | NEW |