Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(686)

Side by Side Diff: content/common/swapped_out_messages.cc

Issue 2648053002: Remove old session history logic. (Closed)
Patch Set: Remove comment. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/site_isolation_policy.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // be handled by the browser. 51 // be handled by the browser.
52 if (CanSendWhileSwappedOut(&msg)) 52 if (CanSendWhileSwappedOut(&msg))
53 return true; 53 return true;
54 54
55 // We drop most other messages that arrive from a swapped out renderer. 55 // We drop most other messages that arrive from a swapped out renderer.
56 // However, some are important (e.g., ACKs) for keeping the browser and 56 // However, some are important (e.g., ACKs) for keeping the browser and
57 // renderer state consistent in case we later return to the renderer. 57 // renderer state consistent in case we later return to the renderer.
58 // Note that synchronous messages that are not handled will receive an 58 // Note that synchronous messages that are not handled will receive an
59 // error reply instead, to avoid leaving the renderer in a stuck state. 59 // error reply instead, to avoid leaving the renderer in a stuck state.
60 switch (msg.type()) { 60 switch (msg.type()) {
61 // Updates the previous navigation entry.
62 case ViewHostMsg_UpdateState::ID:
63 // Sends an ACK. 61 // Sends an ACK.
64 case ViewHostMsg_UpdateTargetURL::ID: 62 case ViewHostMsg_UpdateTargetURL::ID:
65 // We allow closing even if we are in the process of swapping out. 63 // We allow closing even if we are in the process of swapping out.
66 case ViewHostMsg_Close::ID: 64 case ViewHostMsg_Close::ID:
67 // Sends an ACK. 65 // Sends an ACK.
68 case ViewHostMsg_RequestMove::ID: 66 case ViewHostMsg_RequestMove::ID:
69 // Sends an ACK. 67 // Sends an ACK.
70 case AccessibilityHostMsg_Events::ID: 68 case AccessibilityHostMsg_Events::ID:
71 return true; 69 return true;
72 default: 70 default:
73 break; 71 break;
74 } 72 }
75 73
76 return false; 74 return false;
77 } 75 }
78 76
79 } // namespace content 77 } // namespace content
OLDNEW
« no previous file with comments | « content/common/site_isolation_policy.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698