| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "modules/encryptedmedia/HTMLMediaElementEncryptedMedia.h" | 5 #include "modules/encryptedmedia/HTMLMediaElementEncryptedMedia.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/ExceptionState.h" | 7 #include "bindings/core/v8/ExceptionState.h" |
| 8 #include "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
| 9 #include "bindings/core/v8/ScriptPromiseResolver.h" | 9 #include "bindings/core/v8/ScriptPromiseResolver.h" |
| 10 #include "bindings/core/v8/ScriptState.h" | 10 #include "bindings/core/v8/ScriptState.h" |
| 11 #include "bindings/core/v8/V8ThrowDOMException.h" | 11 #include "bindings/core/v8/V8ThrowDOMException.h" |
| 12 #include "core/dom/DOMException.h" | 12 #include "core/dom/DOMException.h" |
| 13 #include "core/dom/DOMTypedArray.h" | 13 #include "core/dom/DOMTypedArray.h" |
| 14 #include "core/dom/ExceptionCode.h" | 14 #include "core/dom/ExceptionCode.h" |
| 15 #include "core/dom/TaskRunnerHelper.h" | 15 #include "core/dom/TaskRunnerHelper.h" |
| 16 #include "core/html/HTMLMediaElement.h" | 16 #include "core/html/HTMLMediaElement.h" |
| 17 #include "modules/encryptedmedia/ContentDecryptionModuleResultPromise.h" | 17 #include "modules/encryptedmedia/ContentDecryptionModuleResultPromise.h" |
| 18 #include "modules/encryptedmedia/EncryptedMediaUtils.h" | 18 #include "modules/encryptedmedia/EncryptedMediaUtils.h" |
| 19 #include "modules/encryptedmedia/MediaEncryptedEvent.h" | 19 #include "modules/encryptedmedia/MediaEncryptedEvent.h" |
| 20 #include "modules/encryptedmedia/MediaKeys.h" | 20 #include "modules/encryptedmedia/MediaKeys.h" |
| 21 #include "platform/ContentDecryptionModuleResult.h" | 21 #include "platform/ContentDecryptionModuleResult.h" |
| 22 #include "platform/wtf/Functional.h" | 22 #include "platform/wtf/Functional.h" |
| 23 #include "platform/wtf/text/StringBuilder.h" |
| 23 | 24 |
| 24 #define EME_LOG_LEVEL 3 | 25 #define EME_LOG_LEVEL 3 |
| 25 | 26 |
| 26 namespace blink { | 27 namespace blink { |
| 27 | 28 |
| 28 // This class allows MediaKeys to be set asynchronously. | 29 // This class allows MediaKeys to be set asynchronously. |
| 29 class SetMediaKeysHandler : public ScriptPromiseResolver { | 30 class SetMediaKeysHandler : public ScriptPromiseResolver { |
| 30 WTF_MAKE_NONCOPYABLE(SetMediaKeysHandler); | 31 WTF_MAKE_NONCOPYABLE(SetMediaKeysHandler); |
| 31 | 32 |
| 32 public: | 33 public: |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 return media_keys_ ? media_keys_->ContentDecryptionModule() : 0; | 445 return media_keys_ ? media_keys_->ContentDecryptionModule() : 0; |
| 445 } | 446 } |
| 446 | 447 |
| 447 DEFINE_TRACE(HTMLMediaElementEncryptedMedia) { | 448 DEFINE_TRACE(HTMLMediaElementEncryptedMedia) { |
| 448 visitor->Trace(media_element_); | 449 visitor->Trace(media_element_); |
| 449 visitor->Trace(media_keys_); | 450 visitor->Trace(media_keys_); |
| 450 Supplement<HTMLMediaElement>::Trace(visitor); | 451 Supplement<HTMLMediaElement>::Trace(visitor); |
| 451 } | 452 } |
| 452 | 453 |
| 453 } // namespace blink | 454 } // namespace blink |
| OLD | NEW |