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

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

Issue 9108001: Adds support for calling postMessage on a frame living in a different renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Invert check. Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/web_contents/web_contents_impl.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/view_messages.h" 8 #include "content/common/view_messages.h"
9 #include "content/public/common/content_client.h" 9 #include "content/public/common/content_client.h"
10 10
(...skipping 12 matching lines...) Expand all
23 case ViewHostMsg_OpenURL::ID: 23 case ViewHostMsg_OpenURL::ID:
24 case ViewHostMsg_Focus::ID: 24 case ViewHostMsg_Focus::ID:
25 // Handled by RenderView. 25 // Handled by RenderView.
26 case ViewHostMsg_RenderViewGone::ID: 26 case ViewHostMsg_RenderViewGone::ID:
27 case ViewHostMsg_ShouldClose_ACK::ID: 27 case ViewHostMsg_ShouldClose_ACK::ID:
28 case ViewHostMsg_SwapOut_ACK::ID: 28 case ViewHostMsg_SwapOut_ACK::ID:
29 case ViewHostMsg_ClosePage_ACK::ID: 29 case ViewHostMsg_ClosePage_ACK::ID:
30 case ViewHostMsg_DomOperationResponse::ID: 30 case ViewHostMsg_DomOperationResponse::ID:
31 // Allow cross-process JavaScript calls. 31 // Allow cross-process JavaScript calls.
32 case ViewHostMsg_RouteCloseEvent::ID: 32 case ViewHostMsg_RouteCloseEvent::ID:
33 case ViewHostMsg_RouteMessageEvent::ID:
33 return true; 34 return true;
34 default: 35 default:
35 break; 36 break;
36 } 37 }
37 38
38 return false; 39 return false;
39 } 40 }
40 41
41 bool SwappedOutMessages::CanHandleWhileSwappedOut( 42 bool SwappedOutMessages::CanHandleWhileSwappedOut(
42 const IPC::Message& msg) { 43 const IPC::Message& msg) {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 default: 79 default:
79 break; 80 break;
80 } 81 }
81 82
82 // Check with the embedder as well. 83 // Check with the embedder as well.
83 ContentClient* client = GetContentClient(); 84 ContentClient* client = GetContentClient();
84 return client->CanHandleWhileSwappedOut(msg); 85 return client->CanHandleWhileSwappedOut(msg);
85 } 86 }
86 87
87 } // namespace content 88 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698