Chromium Code Reviews| 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" |
|
jam
2011/05/11 20:19:31
the reason you're getting the compile link failure
Charlie Reis
2011/05/11 20:49:15
Thanks. (Fixed in render_messages.h, as you saw.
|
| #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 |