Implement MoveFileLocal (with creating a snapshot).
[chromium-blink-merge.git] / media / cdm / cenc_utils.h
blobc659742db0f400dcf71b5359a7a7ef291ded3d48
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
3 // found in the LICENSE file.
5 #ifndef MEDIA_CDM_CENC_UTILS_H_
6 #define MEDIA_CDM_CENC_UTILS_H_
8 #include <vector>
10 #include "base/basictypes.h"
11 #include "media/base/media_export.h"
13 namespace media {
15 // Gets the Key Ids from a 'pssh' box for the Common SystemID among one or
16 // more concatenated 'pssh' boxes. If |input| looks valid, then true is
17 // returned and |key_ids| is updated to contain the values found. Otherwise
18 // return false.
19 // TODO(jrummell): This returns true if no Common SystemID 'pssh' boxes are
20 // found, or are included but don't contain any key IDs. This should be
21 // fixed once the test files are updated to include correct 'pssh' boxes.
22 // http://crbug.com/460308
23 MEDIA_EXPORT bool GetKeyIdsForCommonSystemId(
24 const uint8* input,
25 int input_length,
26 std::vector<std::vector<uint8>>* key_ids);
28 } // namespace media
30 #endif // MEDIA_CDM_CENC_UTILS_H_