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

Side by Side Diff: media/base/media_keys.h

Issue 2255943002: EME: Remove obsolete legacy APIs related to versions of prefixed EME (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build and add bug reference for obsoletes Created 4 years, 4 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 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef MEDIA_BASE_MEDIA_KEYS_H_ 5 #ifndef MEDIA_BASE_MEDIA_KEYS_H_
6 #define MEDIA_BASE_MEDIA_KEYS_H_ 6 #define MEDIA_BASE_MEDIA_KEYS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // Destroys |media_keys| on the correct thread. 174 // Destroys |media_keys| on the correct thread.
175 static void Destruct(const MediaKeys* media_keys); 175 static void Destruct(const MediaKeys* media_keys);
176 }; 176 };
177 177
178 // CDM session event callbacks. 178 // CDM session event callbacks.
179 179
180 // Called when the CDM needs to queue a message event to the session object. 180 // Called when the CDM needs to queue a message event to the session object.
181 // See http://w3c.github.io/encrypted-media/#dom-evt-message 181 // See http://w3c.github.io/encrypted-media/#dom-evt-message
182 typedef base::Callback<void(const std::string& session_id, 182 typedef base::Callback<void(const std::string& session_id,
183 MediaKeys::MessageType message_type, 183 MediaKeys::MessageType message_type,
184 const std::vector<uint8_t>& message, 184 const std::vector<uint8_t>& message)>
185 // TODO(ddorwin): Remove. https://crbug.com/249976
186 const GURL& legacy_destination_url)>
187 SessionMessageCB; 185 SessionMessageCB;
188 186
189 // Called when the session specified by |session_id| is closed. Note that the 187 // Called when the session specified by |session_id| is closed. Note that the
190 // CDM may close a session at any point, such as in response to a CloseSession() 188 // CDM may close a session at any point, such as in response to a CloseSession()
191 // call, when the session is no longer needed, or when system resources are 189 // call, when the session is no longer needed, or when system resources are
192 // lost. See http://w3c.github.io/encrypted-media/#session-close 190 // lost. See http://w3c.github.io/encrypted-media/#session-close
193 typedef base::Callback<void(const std::string& session_id)> SessionClosedCB; 191 typedef base::Callback<void(const std::string& session_id)> SessionClosedCB;
194 192
195 // TODO(xhwang): Remove after prefixed EME support is removed. See
196 // http://crbug.com/249976
197 typedef base::Callback<void(const std::string& session_id,
198 MediaKeys::Exception exception,
199 uint32_t system_code,
200 const std::string& error_message)>
201 LegacySessionErrorCB;
202
203 // Called when there has been a change in the keys in the session or their 193 // Called when there has been a change in the keys in the session or their
204 // status. See http://w3c.github.io/encrypted-media/#dom-evt-keystatuseschange 194 // status. See http://w3c.github.io/encrypted-media/#dom-evt-keystatuseschange
205 typedef base::Callback<void(const std::string& session_id, 195 typedef base::Callback<void(const std::string& session_id,
206 bool has_additional_usable_key, 196 bool has_additional_usable_key,
207 CdmKeysInfo keys_info)> SessionKeysChangeCB; 197 CdmKeysInfo keys_info)> SessionKeysChangeCB;
208 198
209 // Called when the CDM changes the expiration time of a session. 199 // Called when the CDM changes the expiration time of a session.
210 // See http://w3c.github.io/encrypted-media/#update-expiration 200 // See http://w3c.github.io/encrypted-media/#update-expiration
211 typedef base::Callback<void(const std::string& session_id, 201 typedef base::Callback<void(const std::string& session_id,
212 const base::Time& new_expiry_time)> 202 const base::Time& new_expiry_time)>
213 SessionExpirationUpdateCB; 203 SessionExpirationUpdateCB;
214 204
215 } // namespace media 205 } // namespace media
216 206
217 #endif // MEDIA_BASE_MEDIA_KEYS_H_ 207 #endif // MEDIA_BASE_MEDIA_KEYS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698