BrowserPlugin: Simplify guest access
commit986f59179731e7970d99d9e8d1a7de43719c73bc
authorfsamuel <fsamuel@chromium.org>
Wed, 27 Aug 2014 01:11:30 +0000 (26 18:11 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 27 Aug 2014 01:14:23 +0000 (27 01:14 +0000)
tree3d1a08da24ce475b06eb180cf816e4fd05e97494
parent8f65982274893958898690b22e1c0c9ed4968857
BrowserPlugin: Simplify guest access

Now that it's impossible for content to create guests and it's impossible
for a compromised embedder to access a guest it does not have permission to
access from content, BrowserPluginGuestManager::MaybeGetGuestByInstanceIDOrKill
seems a bit heavy-handed. This CL simplifies the API a bit.

This is also a prerequiste to support accessibility in BrowserPlugin.

BUG=226145

Review URL: https://codereview.chromium.org/511643002

Cr-Commit-Position: refs/heads/master@{#292060}
content/browser/browser_plugin/browser_plugin_embedder.cc
content/browser/browser_plugin/browser_plugin_embedder.h
content/browser/browser_plugin/browser_plugin_message_filter.cc
content/public/browser/browser_plugin_guest_manager.cc
content/public/browser/browser_plugin_guest_manager.h
extensions/browser/guest_view/guest_view_manager.cc
extensions/browser/guest_view/guest_view_manager.h