| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // be handled by the browser. | 63 // be handled by the browser. |
| 64 if (CanSendWhileSwappedOut(&msg)) | 64 if (CanSendWhileSwappedOut(&msg)) |
| 65 return true; | 65 return true; |
| 66 | 66 |
| 67 // We drop most other messages that arrive from a swapped out renderer. | 67 // We drop most other messages that arrive from a swapped out renderer. |
| 68 // However, some are important (e.g., ACKs) for keeping the browser and | 68 // However, some are important (e.g., ACKs) for keeping the browser and |
| 69 // renderer state consistent in case we later return to the renderer. | 69 // renderer state consistent in case we later return to the renderer. |
| 70 // Note that synchronous messages that are not handled will receive an | 70 // Note that synchronous messages that are not handled will receive an |
| 71 // error reply instead, to avoid leaving the renderer in a stuck state. | 71 // error reply instead, to avoid leaving the renderer in a stuck state. |
| 72 switch (msg.type()) { | 72 switch (msg.type()) { |
| 73 // Updates the previous navigation entry. | |
| 74 case ViewHostMsg_UpdateState::ID: | |
| 75 // Sends an ACK. | 73 // Sends an ACK. |
| 76 case ViewHostMsg_UpdateTargetURL::ID: | 74 case ViewHostMsg_UpdateTargetURL::ID: |
| 77 // We allow closing even if we are in the process of swapping out. | 75 // We allow closing even if we are in the process of swapping out. |
| 78 case ViewHostMsg_Close::ID: | 76 case ViewHostMsg_Close::ID: |
| 79 // Sends an ACK. | 77 // Sends an ACK. |
| 80 case ViewHostMsg_RequestMove::ID: | 78 case ViewHostMsg_RequestMove::ID: |
| 81 // Sends an ACK. | 79 // Sends an ACK. |
| 82 case AccessibilityHostMsg_Events::ID: | 80 case AccessibilityHostMsg_Events::ID: |
| 83 return true; | 81 return true; |
| 84 default: | 82 default: |
| 85 break; | 83 break; |
| 86 } | 84 } |
| 87 | 85 |
| 88 return false; | 86 return false; |
| 89 } | 87 } |
| 90 | 88 |
| 91 } // namespace content | 89 } // namespace content |
| OLD | NEW |