[ MimeHandlerView ] Hooks for postMessage
This CL adds a new public/web API to support postMessage API for
<embed>'s that are being handled by a frame-based MimeHandlerView. The
API is plumbed from HTMLPlugInElement to MimeHandlerViewFrameContainer.
The added API is the equivalent of WebPlugin::ScriptableObject; for
frame-based MimeHandlerView a WebPlugin is not instantiated and
therefore the scriptable object should be plumbed with its own API.
The implementation of postMessage based on gin/ (similar to what current
MimeHandlerViewContainer provides) will be added in a follow-up CL.
Bug: 659750
Change-Id: Ie905928eb550d6134764edce4930a77eabd6270e
Reviewed-on: https://chromium-review.googlesource.com/c/1487203
Reviewed-by: Avi Drissman <[email protected]>
Reviewed-by: Kent Tamura <[email protected]>
Reviewed-by: Istiaque Ahmed <[email protected]>
Commit-Queue: Ehsan Karamad <[email protected]>
Cr-Commit-Position: refs/heads/master@{#635536}
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index b14e43bfe..66deafa 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -1334,6 +1334,9 @@
const blink::WebElement& plugin_element,
const blink::WebURL& url,
const blink::WebString& suggested_mime_type) override;
+ v8::Local<v8::Object> GetScriptableObject(
+ const blink::WebElement& plugin_element,
+ v8::Isolate* isolate) override;
// Updates the state of this frame when asked to commit a navigation.
void PrepareFrameForCommit(const GURL& url,