diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/encryptedmedia/media_key_session.h')
-rw-r--r-- | chromium/third_party/blink/renderer/modules/encryptedmedia/media_key_session.h | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/chromium/third_party/blink/renderer/modules/encryptedmedia/media_key_session.h b/chromium/third_party/blink/renderer/modules/encryptedmedia/media_key_session.h index 6a0027cc825..1265494e9de 100644 --- a/chromium/third_party/blink/renderer/modules/encryptedmedia/media_key_session.h +++ b/chromium/third_party/blink/renderer/modules/encryptedmedia/media_key_session.h @@ -31,7 +31,7 @@ #include "third_party/blink/public/platform/web_encrypted_media_types.h" #include "third_party/blink/renderer/bindings/core/v8/active_script_wrappable.h" #include "third_party/blink/renderer/bindings/core/v8/script_promise_property.h" -#include "third_party/blink/renderer/core/execution_context/context_lifecycle_observer.h" +#include "third_party/blink/renderer/core/execution_context/execution_context_lifecycle_observer.h" #include "third_party/blink/renderer/core/typed_arrays/dom_array_piece.h" #include "third_party/blink/renderer/modules/encryptedmedia/media_key_status_map.h" #include "third_party/blink/renderer/modules/event_target_modules.h" @@ -46,6 +46,7 @@ namespace blink { class DOMException; class EventQueue; +class ExceptionState; class MediaKeys; // References are held by JS only. However, even if all JS references are @@ -68,7 +69,7 @@ class MediaKeys; class MediaKeySession final : public EventTargetWithInlineData, public ActiveScriptWrappable<MediaKeySession>, - public ContextLifecycleObserver, + public ExecutionContextLifecycleObserver, private WebContentDecryptionModuleSession::Client { DEFINE_WRAPPERTYPEINFO(); USING_GARBAGE_COLLECTED_MIXIN(MediaKeySession); @@ -87,11 +88,14 @@ class MediaKeySession final ScriptPromise generateRequest(ScriptState*, const String& init_data_type, - const DOMArrayPiece& init_data); - ScriptPromise load(ScriptState*, const String& session_id); - ScriptPromise update(ScriptState*, const DOMArrayPiece& response); - ScriptPromise close(ScriptState*); - ScriptPromise remove(ScriptState*); + const DOMArrayPiece& init_data, + ExceptionState&); + ScriptPromise load(ScriptState*, const String& session_id, ExceptionState&); + ScriptPromise update(ScriptState*, + const DOMArrayPiece& response, + ExceptionState&); + ScriptPromise close(ScriptState*, ExceptionState&); + ScriptPromise remove(ScriptState*, ExceptionState&); // EventTarget const AtomicString& InterfaceName() const override; @@ -100,10 +104,10 @@ class MediaKeySession final // ScriptWrappable bool HasPendingActivity() const final; - // ContextLifecycleObserver - void ContextDestroyed(ExecutionContext*) override; + // ExecutionContextLifecycleObserver + void ContextDestroyed() override; - void Trace(blink::Visitor*) override; + void Trace(Visitor*) override; private: class PendingAction; @@ -153,9 +157,7 @@ class MediaKeySession final bool is_closing_or_closed_; // Keep track of the closed promise. - typedef ScriptPromiseProperty<Member<MediaKeySession>, - ToV8UndefinedGenerator, - Member<DOMException>> + typedef ScriptPromiseProperty<ToV8UndefinedGenerator, Member<DOMException>> ClosedPromise; Member<ClosedPromise> closed_promise_; |