bindings: Simplifies WindowProxyManager and its relation to Frame.
Both of LocalFrame and RemoteFrame have a WindowProxyManager.
We can move it into a base class Frame.
windowProxy->initializedIfNeeded() is moved into WindowProxyManager
from ScriptController and RemoteFrame.
WindowProxyManager::windowProxy(world) now always returns
an initialized global proxy. It's safer than before, I think.
(But no behavioral change in this CL at all.)
Also the following renaming is done in order to emphasize that
the returned object may not be initialized.
WindowProxyManagerBase
=> WindowProxyManager
(Same naming as Frame, DOMWindow and WindowProxy)
WindowProxyManager::mainWorldProxy
=> mainWorldProxyMaybeUninitialized
WindowProxyManager::windowProxy
=> windowProxyMaybeUninitialized
By the way, we don't much use RemoteWindowProxyManager.
We can simply remove the class in a follow-up CL.
BUG=
Review-Url: https://codereview.chromium.org/2702273004
Cr-Commit-Position: refs/heads/master@{#457409}
12 files changed