android_key_systems.h 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2014 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 COMPONENTS_CDM_RENDERER_ANDROID_KEY_SYSTEMS_H_
  5. #define COMPONENTS_CDM_RENDERER_ANDROID_KEY_SYSTEMS_H_
  6. #include <memory>
  7. #include <vector>
  8. #include "components/cdm/common/cdm_messages_android.h"
  9. #include "media/base/key_system_properties.h"
  10. #include "third_party/widevine/cdm/buildflags.h"
  11. namespace cdm {
  12. #if BUILDFLAG(ENABLE_WIDEVINE)
  13. void AddAndroidWidevine(
  14. std::vector<std::unique_ptr<media::KeySystemProperties>>* key_systems);
  15. #endif // BUILDFLAG(ENABLE_WIDEVINE)
  16. // Add platform-supported key systems which are not explicitly handled
  17. // by Chrome.
  18. void AddAndroidPlatformKeySystems(
  19. std::vector<std::unique_ptr<media::KeySystemProperties>>* key_systems);
  20. // Query key system property in browser process.
  21. SupportedKeySystemResponse QueryKeySystemSupport(const std::string& key_system);
  22. } // namespace cdm
  23. #endif // COMPONENTS_CDM_RENDERER_ANDROID_KEY_SYSTEMS_H_