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 |