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

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

Issue 858693002: Add MediaKeySession.keystatuseschange event (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: WebData Created 5 years, 11 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 95
96 MediaKeySession(ScriptState*, MediaKeys*, const String& sessionType); 96 MediaKeySession(ScriptState*, MediaKeys*, const String& sessionType);
97 97
98 void actionTimerFired(Timer<MediaKeySession>*); 98 void actionTimerFired(Timer<MediaKeySession>*);
99 99
100 // WebContentDecryptionModuleSession::Client 100 // WebContentDecryptionModuleSession::Client
101 virtual void message(MessageType, const unsigned char* message, size_t messa geLength) override; 101 virtual void message(MessageType, const unsigned char* message, size_t messa geLength) override;
102 virtual void message(const unsigned char* message, size_t messageLength, con st WebURL& destinationURL) override; 102 virtual void message(const unsigned char* message, size_t messageLength, con st WebURL& destinationURL) override;
103 virtual void close() override; 103 virtual void close() override;
104 virtual void expirationChanged(double updatedExpiryTimeInMS) override; 104 virtual void expirationChanged(double updatedExpiryTimeInMS) override;
105 virtual void keysStatusesChange(const WebVector<WebEncryptedMediaKeyInformat ion>&, bool hasAdditionalUsableKey) override;
105 106
106 // Called by NewSessionResult when the new session has been created. 107 // Called by NewSessionResult when the new session has been created.
107 void finishGenerateRequest(); 108 void finishGenerateRequest();
108 109
109 // Called by LoadSessionResult when the session has been loaded. 110 // Called by LoadSessionResult when the session has been loaded.
110 void finishLoad(); 111 void finishLoad();
111 112
112 String m_keySystem; 113 String m_keySystem;
113 OwnPtrWillBeMember<GenericEventQueue> m_asyncEventQueue; 114 OwnPtrWillBeMember<GenericEventQueue> m_asyncEventQueue;
114 OwnPtr<WebContentDecryptionModuleSession> m_session; 115 OwnPtr<WebContentDecryptionModuleSession> m_session;
(...skipping 14 matching lines...) Expand all
129 typedef ScriptPromiseProperty<Member<MediaKeySession>, ToV8UndefinedGenerato r, RefPtrWillBeMember<DOMException> > ClosedPromise; 130 typedef ScriptPromiseProperty<Member<MediaKeySession>, ToV8UndefinedGenerato r, RefPtrWillBeMember<DOMException> > ClosedPromise;
130 Member<ClosedPromise> m_closedPromise; 131 Member<ClosedPromise> m_closedPromise;
131 132
132 HeapDeque<Member<PendingAction> > m_pendingActions; 133 HeapDeque<Member<PendingAction> > m_pendingActions;
133 Timer<MediaKeySession> m_actionTimer; 134 Timer<MediaKeySession> m_actionTimer;
134 }; 135 };
135 136
136 } // namespace blink 137 } // namespace blink
137 138
138 #endif // MediaKeySession_h 139 #endif // MediaKeySession_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698