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

Side by Side Diff: media/remoting/rpc/proto_enum_utils.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/remoting/remoting_cdm.h ('k') | media/remoting/rpc/proto_enum_utils.cc » ('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_REMOTING_RPC_PROTO_ENUM_UTILS_H_ 5 #ifndef MEDIA_REMOTING_RPC_PROTO_ENUM_UTILS_H_
6 #define MEDIA_REMOTING_RPC_PROTO_ENUM_UTILS_H_ 6 #define MEDIA_REMOTING_RPC_PROTO_ENUM_UTILS_H_
7 7
8 #include "base/optional.h" 8 #include "base/optional.h"
9 #include "media/base/audio_codecs.h" 9 #include "media/base/audio_codecs.h"
10 #include "media/base/buffering_state.h" 10 #include "media/base/buffering_state.h"
11 #include "media/base/cdm_key_information.h" 11 #include "media/base/cdm_key_information.h"
12 #include "media/base/cdm_promise.h" 12 #include "media/base/cdm_promise.h"
13 #include "media/base/channel_layout.h" 13 #include "media/base/channel_layout.h"
14 #include "media/base/content_decryption_module.h"
14 #include "media/base/demuxer_stream.h" 15 #include "media/base/demuxer_stream.h"
15 #include "media/base/encryption_scheme.h" 16 #include "media/base/encryption_scheme.h"
16 #include "media/base/media_keys.h"
17 #include "media/base/sample_format.h" 17 #include "media/base/sample_format.h"
18 #include "media/base/video_codecs.h" 18 #include "media/base/video_codecs.h"
19 #include "media/base/video_types.h" 19 #include "media/base/video_types.h"
20 #include "media/remoting/remoting_rpc_message.pb.h" 20 #include "media/remoting/remoting_rpc_message.pb.h"
21 21
22 namespace media { 22 namespace media {
23 namespace remoting { 23 namespace remoting {
24 24
25 // The following functions map between the enum values in media/base modules and 25 // The following functions map between the enum values in media/base modules and
26 // the equivalents in the media/remoting protobuf classes. The purpose of these 26 // the equivalents in the media/remoting protobuf classes. The purpose of these
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 pb::RendererClientOnBufferingStateChange::State value); 75 pb::RendererClientOnBufferingStateChange::State value);
76 base::Optional<pb::RendererClientOnBufferingStateChange::State> 76 base::Optional<pb::RendererClientOnBufferingStateChange::State>
77 ToProtoMediaBufferingState(::media::BufferingState value); 77 ToProtoMediaBufferingState(::media::BufferingState value);
78 78
79 base::Optional<::media::CdmKeyInformation::KeyStatus> 79 base::Optional<::media::CdmKeyInformation::KeyStatus>
80 ToMediaCdmKeyInformationKeyStatus(pb::CdmKeyInformation::KeyStatus value); 80 ToMediaCdmKeyInformationKeyStatus(pb::CdmKeyInformation::KeyStatus value);
81 base::Optional<pb::CdmKeyInformation::KeyStatus> ToProtoCdmKeyInformation( 81 base::Optional<pb::CdmKeyInformation::KeyStatus> ToProtoCdmKeyInformation(
82 ::media::CdmKeyInformation::KeyStatus value); 82 ::media::CdmKeyInformation::KeyStatus value);
83 83
84 base::Optional<::media::CdmPromise::Exception> ToCdmPromiseException( 84 base::Optional<::media::CdmPromise::Exception> ToCdmPromiseException(
85 pb::MediaKeysException value); 85 pb::CdmException value);
86 base::Optional<pb::MediaKeysException> ToProtoMediaKeysException( 86 base::Optional<pb::CdmException> ToProtoCdmException(
87 ::media::CdmPromise::Exception value); 87 ::media::CdmPromise::Exception value);
88 88
89 base::Optional<::media::MediaKeys::MessageType> ToMediaMediaKeysMessageType( 89 base::Optional<::media::ContentDecryptionModule::MessageType>
90 pb::MediaKeysMessageType value); 90 ToMediaCdmMessageType(pb::CdmMessageType value);
91 base::Optional<pb::MediaKeysMessageType> ToProtoMediaKeysMessageType( 91 base::Optional<pb::CdmMessageType> ToProtoCdmMessageType(
92 ::media::MediaKeys::MessageType value); 92 ::media::ContentDecryptionModule::MessageType value);
93 93
94 base::Optional<::media::MediaKeys::SessionType> ToMediaKeysSessionType( 94 base::Optional<::media::ContentDecryptionModule::SessionType> ToCdmSessionType(
95 pb::MediaKeysSessionType value); 95 pb::CdmSessionType value);
96 base::Optional<pb::MediaKeysSessionType> ToProtoMediaKeysSessionType( 96 base::Optional<pb::CdmSessionType> ToProtoCdmSessionType(
97 ::media::MediaKeys::SessionType value); 97 ::media::ContentDecryptionModule::SessionType value);
98 98
99 base::Optional<::media::EmeInitDataType> ToMediaEmeInitDataType( 99 base::Optional<::media::EmeInitDataType> ToMediaEmeInitDataType(
100 pb::CdmCreateSessionAndGenerateRequest::EmeInitDataType value); 100 pb::CdmCreateSessionAndGenerateRequest::EmeInitDataType value);
101 base::Optional<pb::CdmCreateSessionAndGenerateRequest::EmeInitDataType> 101 base::Optional<pb::CdmCreateSessionAndGenerateRequest::EmeInitDataType>
102 ToProtoMediaEmeInitDataType(::media::EmeInitDataType value); 102 ToProtoMediaEmeInitDataType(::media::EmeInitDataType value);
103 103
104 base::Optional<::media::DemuxerStream::Status> ToDemuxerStreamStatus( 104 base::Optional<::media::DemuxerStream::Status> ToDemuxerStreamStatus(
105 pb::DemuxerStreamReadUntilCallback::Status value); 105 pb::DemuxerStreamReadUntilCallback::Status value);
106 base::Optional<pb::DemuxerStreamReadUntilCallback::Status> 106 base::Optional<pb::DemuxerStreamReadUntilCallback::Status>
107 ToProtoDemuxerStreamStatus(::media::DemuxerStream::Status value); 107 ToProtoDemuxerStreamStatus(::media::DemuxerStream::Status value);
108 108
109 } // namespace remoting 109 } // namespace remoting
110 } // namespace media 110 } // namespace media
111 111
112 #endif // MEDIA_REMOTING_RPC_PROTO_ENUM_UTILS_H_ 112 #endif // MEDIA_REMOTING_RPC_PROTO_ENUM_UTILS_H_
OLDNEW
« no previous file with comments | « media/remoting/remoting_cdm.h ('k') | media/remoting/rpc/proto_enum_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698