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

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

Issue 2895573002: Reland of Remove ScopedVector from all other codes in media/ (Closed)
Patch Set: Fix the compile fails in build target "jpeg_decode_accelerator_unittest" Created 3 years, 7 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
« no previous file with comments | « media/base/android/media_drm_bridge.cc ('k') | media/blink/cdm_session_adapter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CONTENT_DECRYPTION_MODULE_H_ 5 #ifndef MEDIA_BASE_CONTENT_DECRYPTION_MODULE_H_
6 #define MEDIA_BASE_CONTENT_DECRYPTION_MODULE_H_ 6 #define MEDIA_BASE_CONTENT_DECRYPTION_MODULE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/callback.h" 14 #include "base/callback.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "base/memory/scoped_vector.h"
18 #include "media/base/eme_constants.h" 17 #include "media/base/eme_constants.h"
19 #include "media/base/media_export.h" 18 #include "media/base/media_export.h"
20 #include "url/gurl.h" 19 #include "url/gurl.h"
21 20
22 namespace base { 21 namespace base {
23 class Time; 22 class Time;
24 } 23 }
25 24
26 namespace media { 25 namespace media {
27 26
28 class CdmContext; 27 class CdmContext;
29 struct CdmKeyInformation; 28 struct CdmKeyInformation;
30 struct ContentDecryptionModuleTraits; 29 struct ContentDecryptionModuleTraits;
31 30
32 template <typename... T> 31 template <typename... T>
33 class CdmPromiseTemplate; 32 class CdmPromiseTemplate;
34 33
35 typedef CdmPromiseTemplate<std::string> NewSessionCdmPromise; 34 typedef CdmPromiseTemplate<std::string> NewSessionCdmPromise;
36 typedef CdmPromiseTemplate<> SimpleCdmPromise; 35 typedef CdmPromiseTemplate<> SimpleCdmPromise;
37 typedef ScopedVector<CdmKeyInformation> CdmKeysInfo; 36 typedef std::vector<std::unique_ptr<CdmKeyInformation>> CdmKeysInfo;
38 37
39 // Type of license required when creating/loading a session. 38 // Type of license required when creating/loading a session.
40 // Must be consistent with the values specified in the spec: 39 // Must be consistent with the values specified in the spec:
41 // https://w3c.github.io/encrypted-media/#idl-def-MediaKeySessionType 40 // https://w3c.github.io/encrypted-media/#idl-def-MediaKeySessionType
42 enum class CdmSessionType { 41 enum class CdmSessionType {
43 TEMPORARY_SESSION, 42 TEMPORARY_SESSION,
44 PERSISTENT_LICENSE_SESSION, 43 PERSISTENT_LICENSE_SESSION,
45 PERSISTENT_RELEASE_MESSAGE_SESSION, 44 PERSISTENT_RELEASE_MESSAGE_SESSION,
46 SESSION_TYPE_MAX = PERSISTENT_RELEASE_MESSAGE_SESSION 45 SESSION_TYPE_MAX = PERSISTENT_RELEASE_MESSAGE_SESSION
47 }; 46 };
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // A null base::Time() will be translated to NaN in Javascript, which means "no 191 // A null base::Time() will be translated to NaN in Javascript, which means "no
193 // such time exists or if the license explicitly never expires, as determined 192 // such time exists or if the license explicitly never expires, as determined
194 // by the CDM", according to the EME spec. 193 // by the CDM", according to the EME spec.
195 typedef base::Callback<void(const std::string& session_id, 194 typedef base::Callback<void(const std::string& session_id,
196 base::Time new_expiry_time)> 195 base::Time new_expiry_time)>
197 SessionExpirationUpdateCB; 196 SessionExpirationUpdateCB;
198 197
199 } // namespace media 198 } // namespace media
200 199
201 #endif // MEDIA_BASE_CONTENT_DECRYPTION_MODULE_H_ 200 #endif // MEDIA_BASE_CONTENT_DECRYPTION_MODULE_H_
OLDNEW
« no previous file with comments | « media/base/android/media_drm_bridge.cc ('k') | media/blink/cdm_session_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698