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

Side by Side Diff: chrome/common/render_messages_internal.h

Issue 20410: Audio related IPC messages and handlers from browser to renderer (Closed)
Patch Set: cleanup Created 11 years, 10 months 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 | « chrome/common/render_messages.h ('k') | chrome/renderer/DEPS » ('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 (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // This header is meant to be included in multiple passes, hence no traditional 5 // This header is meant to be included in multiple passes, hence no traditional
6 // header guard. 6 // header guard.
7 // See ipc_message_macros.h for explanation of the macros and passes. 7 // See ipc_message_macros.h for explanation of the macros and passes.
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 int /* id of the request message */, 489 int /* id of the request message */,
490 std::vector<std::wstring> /* suggestions */, 490 std::vector<std::wstring> /* suggestions */,
491 int /* index of default suggestion */) 491 int /* index of default suggestion */)
492 492
493 // Sent by the Browser process to alert a window about whether a blocked 493 // Sent by the Browser process to alert a window about whether a blocked
494 // popup notification is visible. The renderer assumes every new window is a 494 // popup notification is visible. The renderer assumes every new window is a
495 // blocked popup until notified otherwise. 495 // blocked popup until notified otherwise.
496 IPC_MESSAGE_ROUTED1(ViewMsg_PopupNotificationVisiblityChanged, 496 IPC_MESSAGE_ROUTED1(ViewMsg_PopupNotificationVisiblityChanged,
497 bool /* Whether it is visible */) 497 bool /* Whether it is visible */)
498 498
499 // Sent by AudioRendererHost to renderer to request an audio packet.
500 IPC_MESSAGE_ROUTED1(ViewMsg_RequestAudioPacket,
501 int /* stream id */)
502
503 // Tell the renderer process that the audio stream has been created, renderer
504 // process would be given a ShareMemoryHandle that it should write to from
505 // then on.
506 IPC_MESSAGE_ROUTED3(ViewMsg_NotifyAudioStreamCreated,
507 int /* stream id */,
508 base::SharedMemoryHandle /* handle */,
509 int /* length */)
510
511 // Notification message sent from AudioRendererHost to renderer for state
512 // update after the renderer has requested a Create/Start/Close.
513 IPC_MESSAGE_ROUTED3(ViewMsg_NotifyAudioStreamStateChanged,
514 int /* stream id */,
515 AudioOutputStream::State /* new state */,
516 int /* additional information (e.g. platform specific
517 error code*/)
518
519 IPC_MESSAGE_ROUTED3(ViewMsg_NotifyAudioStreamVolume,
520 int /* stream id */,
521 double /* left channel */,
522 double /* right channel */)
523
499 IPC_END_MESSAGES(View) 524 IPC_END_MESSAGES(View)
500 525
501 526
502 //----------------------------------------------------------------------------- 527 //-----------------------------------------------------------------------------
503 // WebContents messages 528 // WebContents messages
504 // These are messages sent from the renderer to the browser process. 529 // These are messages sent from the renderer to the browser process.
505 530
506 IPC_BEGIN_MESSAGES(ViewHost) 531 IPC_BEGIN_MESSAGES(ViewHost)
507 // Sent by the renderer when it is creating a new window. The browser creates 532 // Sent by the renderer when it is creating a new window. The browser creates
508 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is 533 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
1162 int /* stream_id */) 1187 int /* stream_id */)
1163 1188
1164 // Set audio volume of the stream specified by (render_view_id, stream_id). 1189 // Set audio volume of the stream specified by (render_view_id, stream_id).
1165 // TODO(hclam): change this to vector if we have channel numbers other than 2. 1190 // TODO(hclam): change this to vector if we have channel numbers other than 2.
1166 IPC_MESSAGE_ROUTED3(ViewHostMsg_SetAudioVolume, 1191 IPC_MESSAGE_ROUTED3(ViewHostMsg_SetAudioVolume,
1167 int /* stream_id */, 1192 int /* stream_id */,
1168 double /* left_channel */, 1193 double /* left_channel */,
1169 double /* right_channel */) 1194 double /* right_channel */)
1170 1195
1171 IPC_END_MESSAGES(ViewHost) 1196 IPC_END_MESSAGES(ViewHost)
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698