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

Unified Diff: chrome/common/chrome_content_client.cc

Issue 6319001: Support window.opener after a process swap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with trunk. Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/chrome_content_client.h ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_content_client.cc
diff --git a/chrome/common/chrome_content_client.cc b/chrome/common/chrome_content_client.cc
index d25e9148f55c3d7163c76ea5dbe6d31f26ccfb86..8308ab65bea6632c97139f99ac4984257517b914 100644
--- a/chrome/common/chrome_content_client.cc
+++ b/chrome/common/chrome_content_client.cc
@@ -12,6 +12,7 @@
#include "chrome/common/child_process_logging.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
+#include "chrome/common/render_messages.h"
#include "content/common/pepper_plugin_registry.h"
#include "remoting/client/plugin/pepper_entrypoints.h"
@@ -184,4 +185,30 @@ void ChromeContentClient::AddPepperPlugins(
#endif
}
+bool ChromeContentClient::CanSendWhileSwappedOut(const IPC::Message* msg) {
+ // Any Chrome-specific messages that must be allowed to be sent from swapped
+ // out renderers.
+ switch (msg->type()) {
+ case ViewHostMsg_DomOperationResponse::ID:
+ return true;
+ default:
+ break;
+ }
+ return false;
+}
+
+bool ChromeContentClient::CanHandleWhileSwappedOut(
+ const IPC::Message& msg) {
+ // Any Chrome-specific messages (apart from those listed in
+ // CanSendWhileSwappedOut) that must be handled by the browser when sent from
+ // swapped out renderers.
+ switch (msg.type()) {
+ case ViewHostMsg_Snapshot::ID:
+ return true;
+ default:
+ break;
+ }
+ return false;
+}
+
} // namespace chrome
« no previous file with comments | « chrome/common/chrome_content_client.h ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698