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

Side by Side Diff: content/renderer/media/audio_message_filter.h

Issue 525313002: SyncSocket Transit Descriptor - refactoring (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits done - Prelanding checks Created 6 years, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_RENDERER_MEDIA_AUDIO_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_AUDIO_MESSAGE_FILTER_H_
6 #define CONTENT_RENDERER_MEDIA_AUDIO_MESSAGE_FILTER_H_ 6 #define CONTENT_RENDERER_MEDIA_AUDIO_MESSAGE_FILTER_H_
7 7
8 #include "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "base/id_map.h" 9 #include "base/id_map.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void Send(IPC::Message* message); 69 void Send(IPC::Message* message);
70 70
71 // IPC::MessageFilter override. Called on |io_message_loop|. 71 // IPC::MessageFilter override. Called on |io_message_loop|.
72 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 72 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
73 virtual void OnFilterAdded(IPC::Sender* sender) OVERRIDE; 73 virtual void OnFilterAdded(IPC::Sender* sender) OVERRIDE;
74 virtual void OnFilterRemoved() OVERRIDE; 74 virtual void OnFilterRemoved() OVERRIDE;
75 virtual void OnChannelClosing() OVERRIDE; 75 virtual void OnChannelClosing() OVERRIDE;
76 76
77 // Received when browser process has created an audio output stream. 77 // Received when browser process has created an audio output stream.
78 void OnStreamCreated(int stream_id, base::SharedMemoryHandle handle, 78 void OnStreamCreated(int stream_id, base::SharedMemoryHandle handle,
79 #if defined(OS_WIN) 79 base::SyncSocket::TransitDescriptor socket_descriptor,
80 base::SyncSocket::Handle socket_handle,
81 #else
82 base::FileDescriptor socket_descriptor,
83 #endif
84 uint32 length); 80 uint32 length);
85 81
86 // Received when internal state of browser process' audio output device has 82 // Received when internal state of browser process' audio output device has
87 // changed. 83 // changed.
88 void OnStreamStateChanged(int stream_id, 84 void OnStreamStateChanged(int stream_id,
89 media::AudioOutputIPCDelegate::State state); 85 media::AudioOutputIPCDelegate::State state);
90 86
91 // Received when the browser process detects an output device change. 87 // Received when the browser process detects an output device change.
92 void OnOutputDeviceChanged(int stream_id, int new_buffer_size, 88 void OnOutputDeviceChanged(int stream_id, int new_buffer_size,
93 int new_sample_rate); 89 int new_sample_rate);
(...skipping 15 matching lines...) Expand all
109 105
110 // The singleton instance for this filter. 106 // The singleton instance for this filter.
111 static AudioMessageFilter* g_filter; 107 static AudioMessageFilter* g_filter;
112 108
113 DISALLOW_COPY_AND_ASSIGN(AudioMessageFilter); 109 DISALLOW_COPY_AND_ASSIGN(AudioMessageFilter);
114 }; 110 };
115 111
116 } // namespace content 112 } // namespace content
117 113
118 #endif // CONTENT_RENDERER_MEDIA_AUDIO_MESSAGE_FILTER_H_ 114 #endif // CONTENT_RENDERER_MEDIA_AUDIO_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « content/renderer/media/audio_input_message_filter.cc ('k') | content/renderer/media/audio_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698