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

Unified Diff: content/common/content_client.h

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 | « content/browser/tab_contents/test_tab_contents.cc ('k') | content/common/swapped_out_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « content/browser/tab_contents/test_tab_contents.cc ('k') | content/common/swapped_out_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698