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

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

Issue 1490613005: media config: expand is_encrypted to a struct. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more xhwang comments Created 4 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_UTIL_H_ 5 #ifndef MEDIA_BASE_UTIL_H_
6 #define MEDIA_BASE_UTIL_H_ 6 #define MEDIA_BASE_UTIL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <vector> 9 #include <vector>
10 10
11 #include "media/base/encryption_scheme.h"
11 #include "media/base/media_export.h" 12 #include "media/base/media_export.h"
12 13
13 namespace media { 14 namespace media {
14 15
15 // Simply returns an empty vector. {Audio|Video}DecoderConfig are often 16 // Simply returns an empty vector. {Audio|Video}DecoderConfig are often
16 // constructed with empty extra data. 17 // constructed with empty extra data.
17 MEDIA_EXPORT std::vector<uint8_t> EmptyExtraData(); 18 MEDIA_EXPORT std::vector<uint8_t> EmptyExtraData();
18 19
20 // The following helper functions return new instances of EncryptionScheme that
21 // indicate widely used settings.
22 MEDIA_EXPORT EncryptionScheme Unencrypted();
23 MEDIA_EXPORT EncryptionScheme AesCtrEncryptionScheme();
24
19 } // namespace media 25 } // namespace media
20 26
21 #endif // MEDIA_BASE_UTIL_H_ 27 #endif // MEDIA_BASE_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698