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

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

Issue 8760024: Cross-process postMessage (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: New patch, still not quite done Created 9 years 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/view_messages.h" 7 #include "content/common/view_messages.h"
8 #include "content/public/common/content_client.h" 8 #include "content/public/common/content_client.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // Suppresses dialog and sends an ACK. 63 // Suppresses dialog and sends an ACK.
64 case ViewHostMsg_RunJavaScriptMessage::ID: 64 case ViewHostMsg_RunJavaScriptMessage::ID:
65 // Suppresses dialog and sends an ACK. 65 // Suppresses dialog and sends an ACK.
66 case ViewHostMsg_RunBeforeUnloadConfirm::ID: 66 case ViewHostMsg_RunBeforeUnloadConfirm::ID:
67 // Sends an ACK. 67 // Sends an ACK.
68 case ViewHostMsg_AccessibilityNotifications::ID: 68 case ViewHostMsg_AccessibilityNotifications::ID:
69 #if defined(USE_X11) 69 #if defined(USE_X11)
70 // Synchronous message when leaving a page with plugin. 70 // Synchronous message when leaving a page with plugin.
71 case ViewHostMsg_DestroyPluginContainer::ID: 71 case ViewHostMsg_DestroyPluginContainer::ID:
72 #endif 72 #endif
73 case ViewHostMsg_SendPostMessage::ID:
73 return true; 74 return true;
74 default: 75 default:
75 break; 76 break;
76 } 77 }
77 78
78 // Check with the embedder as well. 79 // Check with the embedder as well.
79 ContentClient* client = GetContentClient(); 80 ContentClient* client = GetContentClient();
80 return client->CanHandleWhileSwappedOut(msg); 81 return client->CanHandleWhileSwappedOut(msg);
81 } 82 }
82 83
83 } // namespace content 84 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698