Handle createCDM() when frame destroyed
commitd17dc45807d6041ea9df322a4fd4ecefbfcd1664
authorjrummell <jrummell@chromium.org>
Tue, 3 Feb 2015 22:09:25 +0000 (3 14:09 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 3 Feb 2015 22:11:51 +0000 (3 22:11 +0000)
tree30748ec8b702c63e94dc5ce48e6ae2b451820f83
parent71d141817d79c0b42562b72f2b0af817c8c170fb
Handle createCDM() when frame destroyed

createCDM() now uses WeakPtr<> so that it fails gracefully when the
frame is destroyed.

BUG=454278
TEST=fuzzed test doesn't crash

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

Cr-Commit-Position: refs/heads/master@{#314417}
media/blink/webcontentdecryptionmoduleaccess_impl.cc
media/blink/webcontentdecryptionmoduleaccess_impl.h
media/blink/webencryptedmediaclient_impl.cc
media/blink/webencryptedmediaclient_impl.h