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

Side by Side Diff: chromecast/common/media/cma_messages.h

Issue 797793004: Chromecast: IPC messages for browser-based media pipeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 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
OLDNEW
(Empty)
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
5 // IPC messages for the Cast Media Acceleration (CMA) pipeline.
6 // Multiply-included message file, hence no include guard.
7
8 #include "chromecast/common/media/cma_param_traits.h"
9 #include "chromecast/common/media/cma_param_traits_macros.h"
10 #include "chromecast/media/cma/pipeline/load_type.h"
11 #include "content/public/common/common_param_traits.h"
12 #include "ipc/ipc_message_macros.h"
13 #include "media/base/audio_decoder_config.h"
14 #include "media/base/buffering_state.h"
15 #include "media/base/pipeline_status.h"
16 #include "media/base/video_decoder_config.h"
17 #include "ui/gfx/ipc/gfx_param_traits.h"
18
19 #undef IPC_MESSAGE_EXPORT
20 #define IPC_MESSAGE_EXPORT
21 #define IPC_MESSAGE_START CastMediaMsgStart
22
23 // Messages sent from the renderer to the browser process.
24
25 IPC_MESSAGE_CONTROL2(CmaHostMsg_CreateMedia,
26 int /* Media pipeline ID */,
27 chromecast::media::LoadType /* Load type */)
28 IPC_MESSAGE_CONTROL1(CmaHostMsg_DestroyMedia,
29 int /* Media pipeline ID */)
30 IPC_MESSAGE_CONTROL3(CmaHostMsg_SetCdm,
31 int /* Media pipeline ID */,
32 int /* render_frame_id */,
33 int /* cdm_id */)
34 IPC_MESSAGE_CONTROL2(CmaHostMsg_StartPlayingFrom,
35 int /* Media pipeline ID */,
36 base::TimeDelta /* Timestamp */)
37 IPC_MESSAGE_CONTROL1(CmaHostMsg_Flush,
38 int /* Media pipeline ID */)
39 IPC_MESSAGE_CONTROL1(CmaHostMsg_Stop,
40 int /* Media pipeline ID */)
41 IPC_MESSAGE_CONTROL2(CmaHostMsg_SetPlaybackRate,
42 int /* Media pipeline ID */,
43 float /* Playback rate */)
44
45 IPC_MESSAGE_CONTROL3(CmaHostMsg_CreateAvPipe,
46 int /* Media pipeline ID */,
47 int /* Track ID */,
48 size_t /* Fifo size */);
49 IPC_MESSAGE_CONTROL3(CmaHostMsg_AudioInitialize,
50 int /* Media pipeline ID */,
51 int /* Track ID */,
52 media::AudioDecoderConfig /* Audio config */)
53 IPC_MESSAGE_CONTROL3(CmaHostMsg_VideoInitialize,
54 int /* Media pipeline ID */,
55 int /* Track ID */,
56 media::VideoDecoderConfig /* Video config */)
57 IPC_MESSAGE_CONTROL3(CmaHostMsg_SetVolume,
58 int /* Media pipeline ID */,
59 int /* Track ID */,
60 float /* Volume */)
61 IPC_MESSAGE_CONTROL2(CmaHostMsg_NotifyPipeWrite,
62 int /* Media pipeline ID */,
63 int /* Track ID */)
64
65 IPC_MESSAGE_CONTROL5(CmaHostMsg_NotifyExternalSurface,
66 int /* Surface ID */,
67 gfx::PointF /* Quad video top left */,
68 gfx::PointF /* Quad video top right */,
69 gfx::PointF /* Quad video bottim right */,
70 gfx::PointF /* Quad video bottom left */)
71
72 // Messages from the browser to the renderer process.
73
74 IPC_MESSAGE_CONTROL2(CmaMsg_MediaStateChanged,
75 int /* Media pipeline ID */,
76 media::PipelineStatus /* Status */)
77 IPC_MESSAGE_CONTROL4(CmaMsg_TimeUpdate,
78 int /* Media pipeline ID */,
79 base::TimeDelta /* Media time */,
80 base::TimeDelta /* Max media time */,
81 base::TimeTicks /* STC */)
82 IPC_MESSAGE_CONTROL2(CmaMsg_BufferingNotification,
83 int /* Media pipeline ID */,
84 media::BufferingState /* Buffering state */)
85
86 IPC_MESSAGE_CONTROL5(CmaMsg_AvPipeCreated,
87 int /* Media pipeline ID */,
88 int /* Track ID */,
89 bool /* Status */,
90 base::SharedMemoryHandle /* Shared memory */,
91 base::FileDescriptor /* socket handle */)
92 IPC_MESSAGE_CONTROL3(CmaMsg_TrackStateChanged,
93 int /* Media pipeline ID */,
94 int /* Track ID */,
95 media::PipelineStatus /* Status */)
96 IPC_MESSAGE_CONTROL2(CmaMsg_NotifyPipeRead,
97 int /* Media pipeline ID */,
98 int /* Track ID */)
99
100 IPC_MESSAGE_CONTROL2(CmaMsg_Eos,
101 int /* Media pipeline ID */,
102 int /* Track ID */)
103 IPC_MESSAGE_CONTROL3(CmaMsg_PlaybackError,
104 int /* Media pipeline ID */,
105 int /* Track ID */,
106 media::PipelineStatus /* status */)
107 IPC_MESSAGE_CONTROL3(CmaMsg_PlaybackStatistics,
108 int /* Media pipeline ID */,
109 int /* Track ID */,
110 media::PipelineStatistics /* status */)
111 IPC_MESSAGE_CONTROL3(CmaMsg_NaturalSizeChanged,
112 int /* Media pipeline ID */,
113 int /* Track ID */,
114 gfx::Size /* Size */)
OLDNEW
« no previous file with comments | « chromecast/common/media/cma_message_generator.cc ('k') | chromecast/common/media/cma_param_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698