DescriptionBrowser Plugin: Refactor BrowserPluginEmbedder to allow creating guests with openers
Changes:
1. Move most of logic in BrowserPluginEmbedder:OnCreateGuest to BrowserPluginEmbedder::CreateGuest. BrowserPluginEmbedder::CreateGuest takes in an opener guest and a routing ID. BrowserPluginEmbedder::OnCreateGuest calls CreateGuest with a NULL opener.
2. WebContentsImpl::CreateGuest now takes in a routing_id, and a base_web_contents.
3. WebContentsImpl::opener() is now a public accessor.
4. BrowserPluginEmbedder::GetGuestByInstanceID and BrowserPluginEmbedder::DestroyGuestByInstanceID are now public to allow a guest to take (temporary) "ownership" of another guest until it is attached to the embedder's DOM tree.
BUG=140316
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175588
Patch Set 1 #
Total comments: 17
Patch Set 2 : Addressed comments and fixed nits #
Total comments: 1
Patch Set 3 : Fixed nits #
Messages
Total messages: 6 (0 generated)
|