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

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: No need to rename addEventListener/removeEventListener Created 8 years, 2 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 45ae96d09a691c0183cc628fcfa455306bd19031..d9ea479006277e70f512807e7fb81894fa3636b7 100644
--- a/content/renderer/browser_plugin/browser_plugin.h
+++ b/content/renderer/browser_plugin/browser_plugin.h
@@ -36,6 +36,8 @@ class CONTENT_EXPORT BrowserPlugin :
// Set the src attribute value of the BrowserPlugin instance and reset
// the guest_crashed_ flag.
void SetSrcAttribute(const std::string& src);
+ // Get the guest's DOMWindow proxy.
+ NPObject* GetContentWindow() const;
// Returns Chrome's process ID for the current guest.
int process_id() const { return process_id_; }
// The partition identifier string is stored as UTF-8.
@@ -66,6 +68,10 @@ class CONTENT_EXPORT BrowserPlugin :
// element.
void AdvanceFocus(bool reverse);
+ // Inform the BrowserPlugin that the guest's contentWindow is ready,
+ // and provide it with a routing ID to grab it.
+ void GuestContentWindowReady(int guest_routing_id);
+
// Informs the BrowserPlugin that the guest has started/stopped accepting
// touch events.
void SetAcceptTouchEvents(bool accept);
@@ -191,6 +197,7 @@ class CONTENT_EXPORT BrowserPlugin :
int process_id_;
std::string storage_partition_id_;
bool persist_storage_;
+ int guest_routing_id_;
Charlie Reis 2012/10/12 00:31:43 Maybe this should be content_window_routing_id_.
Fady Samuel 2012/10/12 18:07:53 Done.
// Tracks the visibility of the browser plugin regardless of the whole
// embedder RenderView's visibility.
bool visible_;

Powered by Google App Engine
This is Rietveld 408576698