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

Unified Diff: content/renderer/browser_plugin/browser_plugin.h

Issue 10829225: Browser Plugin: Add HTML5-like postMessage support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed crash + cleanup Created 8 years, 3 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
Index: content/renderer/browser_plugin/browser_plugin.h
diff --git a/content/renderer/browser_plugin/browser_plugin.h b/content/renderer/browser_plugin/browser_plugin.h
index 29f9b6dc55798dafa0286f5266877d4e6bdaa855..dd32e88de3822311f2b65516a56ff91a6de28bfc 100644
--- a/content/renderer/browser_plugin/browser_plugin.h
+++ b/content/renderer/browser_plugin/browser_plugin.h
@@ -47,6 +47,13 @@ class CONTENT_EXPORT BrowserPlugin :
// Tells the BrowserPlugin to advance the focus to the next (or previous)
// element.
void AdvanceFocus(bool reverse);
+ // Tell the BrowserPlugin to post a message to its guest.
+ void PostMessage(const string16& message,
+ const string16& target_origin);
+ // Inform the BrowserPlugin of a message posted from its guest.
+ void ReceiveMessage(int source_routing_id,
+ const string16& source_origin,
+ const string16& data);
// Indicates whether there are any Javascript listeners attached to a
// provided event_name.

Powered by Google App Engine
This is Rietveld 408576698