Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(556)

Side by Side Diff: media/base/ipc/media_param_traits_macros.h

Issue 2568463003: media: Rename MediaKeys to ContentDecryptionModule (Closed)
Patch Set: comments addressed Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/base/decryptor.h ('k') | media/base/media_keys.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_BASE_IPC_MEDIA_PARAM_TRAITS_MACROS_H_ 5 #ifndef MEDIA_BASE_IPC_MEDIA_PARAM_TRAITS_MACROS_H_
6 #define MEDIA_BASE_IPC_MEDIA_PARAM_TRAITS_MACROS_H_ 6 #define MEDIA_BASE_IPC_MEDIA_PARAM_TRAITS_MACROS_H_
7 7
8 #include "ipc/ipc_message_macros.h" 8 #include "ipc/ipc_message_macros.h"
9 #include "media/base/audio_codecs.h" 9 #include "media/base/audio_codecs.h"
10 #include "media/base/audio_parameters.h" 10 #include "media/base/audio_parameters.h"
11 #include "media/base/buffering_state.h" 11 #include "media/base/buffering_state.h"
12 #include "media/base/cdm_key_information.h" 12 #include "media/base/cdm_key_information.h"
13 #include "media/base/cdm_promise.h" 13 #include "media/base/cdm_promise.h"
14 #include "media/base/channel_layout.h" 14 #include "media/base/channel_layout.h"
15 #include "media/base/content_decryption_module.h"
15 #include "media/base/decode_status.h" 16 #include "media/base/decode_status.h"
16 #include "media/base/decryptor.h" 17 #include "media/base/decryptor.h"
17 #include "media/base/demuxer_stream.h" 18 #include "media/base/demuxer_stream.h"
18 #include "media/base/eme_constants.h" 19 #include "media/base/eme_constants.h"
19 #include "media/base/encryption_scheme.h" 20 #include "media/base/encryption_scheme.h"
20 #include "media/base/media_keys.h"
21 #include "media/base/sample_format.h" 21 #include "media/base/sample_format.h"
22 #include "media/base/subsample_entry.h" 22 #include "media/base/subsample_entry.h"
23 #include "media/base/video_codecs.h" 23 #include "media/base/video_codecs.h"
24 #include "media/base/video_types.h" 24 #include "media/base/video_types.h"
25 25
26 // Enum traits. 26 // Enum traits.
27 27
28 IPC_ENUM_TRAITS_MAX_VALUE(media::AudioCodec, media::AudioCodec::kAudioCodecMax) 28 IPC_ENUM_TRAITS_MAX_VALUE(media::AudioCodec, media::AudioCodec::kAudioCodecMax)
29 29
30 IPC_ENUM_TRAITS_MAX_VALUE(media::AudioLatency::LatencyType, 30 IPC_ENUM_TRAITS_MAX_VALUE(media::AudioLatency::LatencyType,
(...skipping 28 matching lines...) Expand all
59 media::DemuxerStream::TYPE_MAX) 59 media::DemuxerStream::TYPE_MAX)
60 60
61 IPC_ENUM_TRAITS_MAX_VALUE(media::EmeInitDataType, media::EmeInitDataType::MAX) 61 IPC_ENUM_TRAITS_MAX_VALUE(media::EmeInitDataType, media::EmeInitDataType::MAX)
62 62
63 IPC_ENUM_TRAITS_MAX_VALUE(media::EncryptionScheme::CipherMode, 63 IPC_ENUM_TRAITS_MAX_VALUE(media::EncryptionScheme::CipherMode,
64 media::EncryptionScheme::CipherMode::CIPHER_MODE_MAX) 64 media::EncryptionScheme::CipherMode::CIPHER_MODE_MAX)
65 65
66 IPC_ENUM_TRAITS_MAX_VALUE(media::CdmPromise::Exception, 66 IPC_ENUM_TRAITS_MAX_VALUE(media::CdmPromise::Exception,
67 media::CdmPromise::EXCEPTION_MAX) 67 media::CdmPromise::EXCEPTION_MAX)
68 68
69 IPC_ENUM_TRAITS_MAX_VALUE(media::MediaKeys::MessageType, 69 IPC_ENUM_TRAITS_MAX_VALUE(media::ContentDecryptionModule::MessageType,
70 media::MediaKeys::MESSAGE_TYPE_MAX) 70 media::ContentDecryptionModule::MESSAGE_TYPE_MAX)
71 71
72 IPC_ENUM_TRAITS_MAX_VALUE(media::MediaKeys::SessionType, 72 IPC_ENUM_TRAITS_MAX_VALUE(media::ContentDecryptionModule::SessionType,
73 media::MediaKeys::SESSION_TYPE_MAX) 73 media::ContentDecryptionModule::SESSION_TYPE_MAX)
74 74
75 IPC_ENUM_TRAITS_MAX_VALUE(media::SampleFormat, media::kSampleFormatMax) 75 IPC_ENUM_TRAITS_MAX_VALUE(media::SampleFormat, media::kSampleFormatMax)
76 76
77 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoCodec, media::kVideoCodecMax) 77 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoCodec, media::kVideoCodecMax)
78 78
79 IPC_ENUM_TRAITS_MIN_MAX_VALUE(media::VideoCodecProfile, 79 IPC_ENUM_TRAITS_MIN_MAX_VALUE(media::VideoCodecProfile,
80 media::VIDEO_CODEC_PROFILE_MIN, 80 media::VIDEO_CODEC_PROFILE_MIN,
81 media::VIDEO_CODEC_PROFILE_MAX) 81 media::VIDEO_CODEC_PROFILE_MAX)
82 82
83 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoPixelFormat, media::PIXEL_FORMAT_MAX) 83 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoPixelFormat, media::PIXEL_FORMAT_MAX)
84 84
85 // Struct traits. 85 // Struct traits.
86 86
87 IPC_STRUCT_TRAITS_BEGIN(media::CdmKeyInformation) 87 IPC_STRUCT_TRAITS_BEGIN(media::CdmKeyInformation)
88 IPC_STRUCT_TRAITS_MEMBER(key_id) 88 IPC_STRUCT_TRAITS_MEMBER(key_id)
89 IPC_STRUCT_TRAITS_MEMBER(status) 89 IPC_STRUCT_TRAITS_MEMBER(status)
90 IPC_STRUCT_TRAITS_MEMBER(system_code) 90 IPC_STRUCT_TRAITS_MEMBER(system_code)
91 IPC_STRUCT_TRAITS_END() 91 IPC_STRUCT_TRAITS_END()
92 92
93 IPC_STRUCT_TRAITS_BEGIN(media::SubsampleEntry) 93 IPC_STRUCT_TRAITS_BEGIN(media::SubsampleEntry)
94 IPC_STRUCT_TRAITS_MEMBER(clear_bytes) 94 IPC_STRUCT_TRAITS_MEMBER(clear_bytes)
95 IPC_STRUCT_TRAITS_MEMBER(cypher_bytes) 95 IPC_STRUCT_TRAITS_MEMBER(cypher_bytes)
96 IPC_STRUCT_TRAITS_END() 96 IPC_STRUCT_TRAITS_END()
97 97
98 #endif // MEDIA_BASE_IPC_MEDIA_PARAM_TRAITS_MACROS_H_ 98 #endif // MEDIA_BASE_IPC_MEDIA_PARAM_TRAITS_MACROS_H_
OLDNEW
« no previous file with comments | « media/base/decryptor.h ('k') | media/base/media_keys.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698