OLD | NEW |
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_CDM_JSON_WEB_KEY_H_ | 5 #ifndef MEDIA_CDM_JSON_WEB_KEY_H_ |
6 #define MEDIA_CDM_JSON_WEB_KEY_H_ | 6 #define MEDIA_CDM_JSON_WEB_KEY_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 #include <utility> | 11 #include <utility> |
10 #include <vector> | 12 #include <vector> |
11 | 13 |
12 #include "media/base/media_export.h" | 14 #include "media/base/media_export.h" |
13 #include "media/base/media_keys.h" | 15 #include "media/base/media_keys.h" |
14 | 16 |
15 namespace media { | 17 namespace media { |
16 | 18 |
17 // The ClearKey license request format (ref: | 19 // The ClearKey license request format (ref: |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 // Extract the first key from the license request message. Returns true if | 96 // Extract the first key from the license request message. Returns true if |
95 // |license| is a valid license request and contains at least one key, | 97 // |license| is a valid license request and contains at least one key, |
96 // otherwise false and |first_key| is not touched. | 98 // otherwise false and |first_key| is not touched. |
97 MEDIA_EXPORT bool ExtractFirstKeyIdFromLicenseRequest( | 99 MEDIA_EXPORT bool ExtractFirstKeyIdFromLicenseRequest( |
98 const std::vector<uint8_t>& license, | 100 const std::vector<uint8_t>& license, |
99 std::vector<uint8_t>* first_key); | 101 std::vector<uint8_t>* first_key); |
100 | 102 |
101 } // namespace media | 103 } // namespace media |
102 | 104 |
103 #endif // MEDIA_CDM_JSON_WEB_KEY_H_ | 105 #endif // MEDIA_CDM_JSON_WEB_KEY_H_ |
OLD | NEW |