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

Unified Diff: content/public/renderer/browser_plugin_delegate.h

Issue 801173002: Fix message routing for BrowserPlugin in iframe (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More cleanup Created 6 years 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
Index: content/public/renderer/browser_plugin_delegate.h
diff --git a/content/public/renderer/browser_plugin_delegate.h b/content/public/renderer/browser_plugin_delegate.h
index 282adda24a47510931e68fde57ac1244955039b5..011011ee541e6c1311012724ad267c50c926a930 100644
--- a/content/public/renderer/browser_plugin_delegate.h
+++ b/content/public/renderer/browser_plugin_delegate.h
@@ -8,6 +8,7 @@
#include <string>
#include "content/common/content_export.h"
+#include "ipc/ipc_message.h"
namespace content {
@@ -33,6 +34,10 @@ class CONTENT_EXPORT BrowserPluginDelegate {
// Sets the instance ID that idenfies the plugin within current render
// process.
virtual void SetElementInstanceID(int element_instance_id) {}
+
+ // Called when a message is received. Returns true iff the message was
+ // handled.
+ virtual bool OnMessageReceived(const IPC::Message& message);
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698