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

Unified Diff: content/common/media/audio_messages.h

Issue 525313002: SyncSocket Transit Descriptor - refactoring (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clang formatting and nits addressed Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: content/common/media/audio_messages.h
diff --git a/content/common/media/audio_messages.h b/content/common/media/audio_messages.h
index 3b9bc36ce6ee3740de68cc05c07f5d0d552452e8..1c72e6f157f7936c09c52d85d4518b78b1c03044 100644
--- a/content/common/media/audio_messages.h
+++ b/content/common/media/audio_messages.h
@@ -39,38 +39,18 @@ IPC_STRUCT_END()
// buffer it shares with the browser process. It is also given a SyncSocket that
// it uses to communicate with the browser process about the state of the
// buffered audio data.
-#if defined(OS_WIN)
-IPC_MESSAGE_CONTROL4(AudioMsg_NotifyStreamCreated,
- int /* stream id */,
- base::SharedMemoryHandle /* handle */,
- base::SyncSocket::Handle /* socket handle */,
- uint32 /* length */)
-#else
-IPC_MESSAGE_CONTROL4(AudioMsg_NotifyStreamCreated,
- int /* stream id */,
+IPC_MESSAGE_CONTROL4(AudioMsg_NotifyStreamCreated, int /* stream id */,
base::SharedMemoryHandle /* handle */,
- base::FileDescriptor /* socket handle */,
+ base::SyncSocket::TransitDescriptor /* socket handle */,
no longer working on chromium 2014/09/02 10:25:04 Either change the name to TransitHandle or update
burnik 2014/09/02 15:01:34 Done.
uint32 /* length */)
-#endif
// Tell the renderer process that an audio input stream has been created.
// The renderer process would be given a SyncSocket that it should read
// from from then on. It is also given number of segments in shared memory.
-#if defined(OS_WIN)
-IPC_MESSAGE_CONTROL5(AudioInputMsg_NotifyStreamCreated,
- int /* stream id */,
- base::SharedMemoryHandle /* handle */,
- base::SyncSocket::Handle /* socket handle */,
- uint32 /* length */,
- uint32 /* segment count */)
-#else
-IPC_MESSAGE_CONTROL5(AudioInputMsg_NotifyStreamCreated,
- int /* stream id */,
+IPC_MESSAGE_CONTROL5(AudioInputMsg_NotifyStreamCreated, int /* stream id */,
base::SharedMemoryHandle /* handle */,
- base::FileDescriptor /* socket handle */,
- uint32 /* length */,
- uint32 /* segment count */)
-#endif
+ base::SyncSocket::TransitDescriptor /* socket handle */,
no longer working on chromium 2014/09/02 10:25:04 ditto
burnik 2014/09/02 15:01:34 Done.
+ uint32 /* length */, uint32 /* segment count */)
henrika (OOO until Aug 14) 2014/09/02 07:46:06 I think these should go on one line each.
burnik 2014/09/02 10:02:54 clang-format applied to all -- oops. Done. On 201
no longer working on chromium 2014/09/02 10:25:04 ?? could you double check, it should be one line e
burnik 2014/09/02 15:01:34 I've ran git-cl-format -f master -- content/commo
no longer working on chromium 2014/09/02 15:09:01 The script might not be always correct, you should
burnik 2014/09/04 09:04:56 Done.
// Notification message sent from AudioRendererHost to renderer after an output
// device change has occurred.

Powered by Google App Engine
This is Rietveld 408576698