Index: content/common/content_client.h |
diff --git a/content/common/content_client.h b/content/common/content_client.h |
index e985f4b24c9d2adfc5b757260ee20f181c3e16ab..5fda6d202814457e38a97d4a7a17db31c0b7e0bd 100644 |
--- a/content/common/content_client.h |
+++ b/content/common/content_client.h |
@@ -15,6 +15,10 @@ class GURL; |
struct GPUInfo; |
struct PepperPluginInfo; |
+namespace IPC { |
+class Message; |
+} |
+ |
namespace content { |
class ContentBrowserClient; |
@@ -49,6 +53,16 @@ class ContentClient { |
// Gives the embedder a chance to register its own pepper plugins. |
virtual void AddPepperPlugins(std::vector<PepperPluginInfo>* plugins) {} |
+ // Returns whether the given message should be allowed to be sent from a |
+ // swapped out renderer. |
+ virtual bool CanSendWhileSwappedOut(const IPC::Message* msg) { return false; } |
+ |
+ // Returns whether the given message should be processed in the browser on |
+ // behalf of a swapped out renderer. |
+ virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) { |
+ return false; |
+ } |
+ |
private: |
// The embedder API for participating in browser logic. |
ContentBrowserClient* browser_; |