• thakis@chromium.org's avatar
    Revert 162353 (ShimSrcAttribute in browser_tests on linux asan) · 494885e1
    thakis@chromium.org authored
    - Browser Plugin: Add HTML5-like postMessage support
    
    This is an implementation of HTML5-like postMessage support for the browser plugin.
    
    It works as follows:
    
    In BrowserPluginEmbedder:NavigateGuest, the browser process creates two swapped out RenderView: A swapped out RenderView for the guest in the embedder render process and a swapped out RenderView for the embedder in the guest render process.
    
    The guest RenderView in the embedder process can be accessed via browserPlugin.contentWindow or through the MessageEvent object received from the guest, event.source.
    
    The embedder RenderView in the guest process can be accessed through the MessageEvent object on message events, event.source.
    
    BrowserPluginEmbedderHelper, and BrowserPluginGuestHelper intercept ViewHostMsg_RouteMessageEvent messages from the swapped out RenderViews and route them appropriately.
    
    Note: BrowserPluginBindings now registers add/removeCustomEventListener instead of add/removeEventListener so that the default WebKit implementations are not shadowed by the custom implementations to allow for WebKit MessageEvents to be registered.
    BUG=141238
    
    Review URL: https://chromiumcodereview.appspot.com/10829225
    
    TBR=fsamuel@chromium.org
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162442 0039d316-1c4b-4281-b951-d872f2087c98
    494885e1
browser_plugin_messages.h 10.6 KB