1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
|
# Copyright 2020 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//mojo/public/tools/bindings/mojom.gni")
assert(is_chromeos)
mojom_component("mojom") {
sources = [
"browser_cdm_factory.mojom",
"cdm_factory_daemon.mojom",
"cdm_storage.mojom",
"content_decryption_module.mojom",
"output_protection.mojom",
]
public_deps = [
"//chromeos/ash/experiences/arc/mojom:oemcrypto",
"//chromeos/ash/experiences/arc/mojom:protected_buffer_manager",
"//mojo/public/mojom/base",
"//sandbox/policy/mojom",
"//ui/gfx/geometry/mojom",
]
cpp_typemaps = [
{
types = [
{
mojom = "chromeos.cdm.mojom.CdmMessageType"
cpp = "::media::CdmMessageType"
},
{
mojom = "chromeos.cdm.mojom.CdmSessionType"
cpp = "::media::CdmSessionType"
},
{
mojom = "chromeos.cdm.mojom.EmeInitDataType"
cpp = "::media::EmeInitDataType"
},
{
mojom = "chromeos.cdm.mojom.HdcpVersion"
cpp = "::media::HdcpVersion"
},
{
mojom = "chromeos.cdm.mojom.PromiseException"
cpp = "::media::CdmPromise::Exception"
},
{
mojom = "chromeos.cdm.mojom.ProtectionType"
cpp = "::display::ContentProtectionMethod"
},
{
mojom = "chromeos.cdm.mojom.LinkType"
cpp = "::display::DisplayConnectionType"
},
]
traits_headers = [ "cdm_types_enum_mojom_traits.h" ]
traits_public_deps = [
"//media",
"//ui/display/types",
]
},
{
types = [
{
mojom = "chromeos.cdm.mojom.CdmKeyStatus"
cpp = "::media::CdmKeyInformation::KeyStatus"
},
{
mojom = "chromeos.cdm.mojom.CdmKeyInformation"
cpp = "::std::unique_ptr<::media::CdmKeyInformation>"
move_only = true
},
]
traits_headers = [ "cdm_key_information_mojom_traits.h" ]
traits_sources = [ "cdm_key_information_mojom_traits.cc" ]
traits_public_deps = [ "//media" ]
},
{
types = [
{
mojom = "chromeos.cdm.mojom.DecryptConfig"
cpp = "::std::unique_ptr<::media::DecryptConfig>"
move_only = true
nullable_is_same_type = true
},
{
mojom = "chromeos.cdm.mojom.DecryptStatus"
cpp = "::media::Decryptor::Status"
},
{
mojom = "chromeos.cdm.mojom.EncryptionPattern"
cpp = "::media::EncryptionPattern"
},
{
mojom = "chromeos.cdm.mojom.EncryptionScheme"
cpp = "::media::EncryptionScheme"
},
{
mojom = "chromeos.cdm.mojom.SubsampleEntry"
cpp = "::media::SubsampleEntry"
},
]
traits_headers = [ "decrypt_config_mojom_traits.h" ]
traits_sources = [ "decrypt_config_mojom_traits.cc" ]
traits_public_deps = [ "//media" ]
},
]
output_prefix = "chromeos_cdm_mojom"
macro_prefix = "CHROMEOS_CDM_MOJOM"
}
source_set("unit_tests") {
testonly = true
sources = [
"cdm_key_information_mojom_traits_unittest.cc",
"decrypt_config_mojom_traits_unittest.cc",
]
deps = [
":mojom",
"//base",
"//testing/gmock",
"//testing/gtest",
]
}
|