Improved the state machine in GuestView.
commitbee54af957ecfae23fae290c3ee83dbecaaee3fe
authorpaulmeyer <paulmeyer@chromium.org>
Mon, 1 Dec 2014 18:29:26 +0000 (1 10:29 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 1 Dec 2014 18:29:49 +0000 (1 18:29 +0000)
tree5d4bfdb78916973426e1f0e6e04e5b77664382dd
parent42ff91f666399d88203ef3789743f6ed24319172
Improved the state machine in GuestView.

**********

- Some potential process leaks are now prevented in webview.
- Detach was added to the GuestView API.
  - the guestview state machine also now handles detaching and reattaching.
- Potential failures while creating or attaching are now handled.

BUG=431002, 434226

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

Cr-Commit-Position: refs/heads/master@{#306211}
extensions/renderer/guest_view/extensions_guest_view_container.cc
extensions/renderer/guest_view/extensions_guest_view_container.h
extensions/renderer/guest_view/guest_view_internal_custom_bindings.cc
extensions/renderer/guest_view/guest_view_internal_custom_bindings.h
extensions/renderer/resources/guest_view/guest_view.js
extensions/renderer/resources/guest_view/guest_view_container.js
extensions/renderer/resources/guest_view/web_view.js
extensions/renderer/resources/guest_view/web_view_api_methods.js
extensions/renderer/resources/guest_view/web_view_attributes.js