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

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

Issue 659843002: Let the browser know about the renderer's page id assignments, even if the renderer is swapped out. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « no previous file | no next file » | 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 26 matching lines...) Expand all
37 case FrameHostMsg_BeforeUnload_ACK::ID: 37 case FrameHostMsg_BeforeUnload_ACK::ID:
38 case FrameHostMsg_SwapOut_ACK::ID: 38 case FrameHostMsg_SwapOut_ACK::ID:
39 // Frame detach must occur after the RenderView has swapped out. 39 // Frame detach must occur after the RenderView has swapped out.
40 case FrameHostMsg_Detach::ID: 40 case FrameHostMsg_Detach::ID:
41 case FrameHostMsg_DomOperationResponse::ID: 41 case FrameHostMsg_DomOperationResponse::ID:
42 case FrameHostMsg_CompositorFrameSwappedACK::ID: 42 case FrameHostMsg_CompositorFrameSwappedACK::ID:
43 case FrameHostMsg_ReclaimCompositorResources::ID: 43 case FrameHostMsg_ReclaimCompositorResources::ID:
44 // Input events propagate from parent to child. 44 // Input events propagate from parent to child.
45 case FrameHostMsg_ForwardInputEvent::ID: 45 case FrameHostMsg_ForwardInputEvent::ID:
46 case FrameHostMsg_InitializeChildFrame::ID: 46 case FrameHostMsg_InitializeChildFrame::ID:
47 // The browser should always have an accurate mirror of the renderer's
48 // notion of the current page id.
49 case FrameHostMsg_DidAssignPageId::ID:
47 return true; 50 return true;
48 default: 51 default:
49 break; 52 break;
50 } 53 }
51 54
52 // Check with the embedder as well. 55 // Check with the embedder as well.
53 ContentClient* client = GetContentClient(); 56 ContentClient* client = GetContentClient();
54 return client->CanSendWhileSwappedOut(msg); 57 return client->CanSendWhileSwappedOut(msg);
55 } 58 }
56 59
(...skipping 30 matching lines...) Expand all
87 case AccessibilityHostMsg_Events::ID: 90 case AccessibilityHostMsg_Events::ID:
88 return true; 91 return true;
89 default: 92 default:
90 break; 93 break;
91 } 94 }
92 95
93 return false; 96 return false;
94 } 97 }
95 98
96 } // namespace content 99 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698