Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Side by Side Diff: Source/modules/encryptedmedia/MediaKeySession.h

Issue 568033003: Implement MediaKeySession close() and remove() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2013 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 ScriptPromise closed(ScriptState*); 73 ScriptPromise closed(ScriptState*);
74 74
75 ScriptPromise generateRequest(ScriptState*, const String& initDataType, Arra yBuffer* initData); 75 ScriptPromise generateRequest(ScriptState*, const String& initDataType, Arra yBuffer* initData);
76 ScriptPromise generateRequest(ScriptState*, const String& initDataType, Arra yBufferView* initData); 76 ScriptPromise generateRequest(ScriptState*, const String& initDataType, Arra yBufferView* initData);
77 77
78 void setError(MediaKeyError*); 78 void setError(MediaKeyError*);
79 MediaKeyError* error() { return m_error.get(); } 79 MediaKeyError* error() { return m_error.get(); }
80 80
81 ScriptPromise update(ScriptState*, ArrayBuffer* response); 81 ScriptPromise update(ScriptState*, ArrayBuffer* response);
82 ScriptPromise update(ScriptState*, ArrayBufferView* response); 82 ScriptPromise update(ScriptState*, ArrayBufferView* response);
83 ScriptPromise release(ScriptState*); 83 ScriptPromise close(ScriptState*);
84 ScriptPromise remove(ScriptState*);
84 85
85 void enqueueEvent(PassRefPtrWillBeRawPtr<Event>); 86 void enqueueEvent(PassRefPtrWillBeRawPtr<Event>);
86 87
87 // EventTarget 88 // EventTarget
88 virtual const AtomicString& interfaceName() const override; 89 virtual const AtomicString& interfaceName() const override;
89 virtual ExecutionContext* executionContext() const override; 90 virtual ExecutionContext* executionContext() const override;
90 91
91 // ActiveDOMObject 92 // ActiveDOMObject
92 virtual bool hasPendingActivity() const override; 93 virtual bool hasPendingActivity() const override;
93 virtual void stop() override; 94 virtual void stop() override;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 typedef ScriptPromiseProperty<Member<MediaKeySession>, V8UndefinedType, RefP trWillBeMember<DOMException> > ClosedPromise; 137 typedef ScriptPromiseProperty<Member<MediaKeySession>, V8UndefinedType, RefP trWillBeMember<DOMException> > ClosedPromise;
137 Member<ClosedPromise> m_closedPromise; 138 Member<ClosedPromise> m_closedPromise;
138 139
139 HeapDeque<Member<PendingAction> > m_pendingActions; 140 HeapDeque<Member<PendingAction> > m_pendingActions;
140 Timer<MediaKeySession> m_actionTimer; 141 Timer<MediaKeySession> m_actionTimer;
141 }; 142 };
142 143
143 } // namespace blink 144 } // namespace blink
144 145
145 #endif // MediaKeySession_h 146 #endif // MediaKeySession_h
OLDNEW
« no previous file with comments | « LayoutTests/media/encrypted-media/encrypted-media-v2-syntax.html ('k') | Source/modules/encryptedmedia/MediaKeySession.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698