media_foundation_cdm_data.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright 2021 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.
  4. #ifndef MEDIA_CDM_MEDIA_FOUNDATION_CDM_DATA_H_
  5. #define MEDIA_CDM_MEDIA_FOUNDATION_CDM_DATA_H_
  6. #include <vector>
  7. #include "base/files/file_path.h"
  8. #include "base/unguessable_token.h"
  9. #include "media/base/media_export.h"
  10. #include "third_party/abseil-cpp/absl/types/optional.h"
  11. namespace media {
  12. struct MEDIA_EXPORT MediaFoundationCdmData {
  13. MediaFoundationCdmData();
  14. MediaFoundationCdmData(
  15. const base::UnguessableToken& origin_id,
  16. const absl::optional<std::vector<uint8_t>>& client_token,
  17. const base::FilePath& cdm_store_path_root);
  18. MediaFoundationCdmData(const MediaFoundationCdmData& other) = delete;
  19. MediaFoundationCdmData& operator=(const MediaFoundationCdmData& other) =
  20. delete;
  21. ~MediaFoundationCdmData();
  22. base::UnguessableToken origin_id;
  23. absl::optional<std::vector<uint8_t>> client_token;
  24. base::FilePath cdm_store_path_root;
  25. };
  26. } // namespace media
  27. #endif // MEDIA_CDM_MEDIA_FOUNDATION_CDM_DATA_H_