Makes HTMLFrame own the View created for a child frame
commitb4997bf7579484d9b0b7bf224ba537ebede49954
authorsky <sky@chromium.org>
Wed, 12 Aug 2015 20:11:57 +0000 (12 13:11 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 12 Aug 2015 20:13:05 +0000 (12 20:13 +0000)
tree159447fab0e22a3352a91d782ebb96417dc82978
parent4d4b028eab8d68f048c2e346f5564a5be9109126
Makes HTMLFrame own the View created for a child frame

When an HTMLFrame is created locally (the result of createChildFrame())
then the HTMLFrame needs to own the corresponding View. HTMLFrame can't
delete this View if swapped to remote, as otherwise that would trigger
destruction of the HTMLFrame.

BUG=479172,490221
TEST=none
R=fsamuel@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#343081}
components/html_viewer/html_frame.cc
components/html_viewer/html_frame.h
components/view_manager/public/cpp/BUILD.gn
components/view_manager/public/cpp/lib/scoped_view_ptr.cc [new file with mode: 0644]
components/view_manager/public/cpp/scoped_view_ptr.h [new file with mode: 0644]