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

Side by Side Diff: content/browser/renderer_host/media/audio_renderer_host.h

Issue 292443004: Remove IPC_BEGIN_MESSAGE_MAP_EX macro since r270839 made all bad IPCs kill their child processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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 // AudioRendererHost serves audio related requests from AudioRenderer which 5 // AudioRendererHost serves audio related requests from AudioRenderer which
6 // lives inside the render process and provide access to audio hardware. 6 // lives inside the render process and provide access to audio hardware.
7 // 7 //
8 // This class is owned by BrowserRenderProcessHost, and instantiated on UI 8 // This class is owned by BrowserRenderProcessHost, and instantiated on UI
9 // thread, but all other operations and method calls happen on IO thread, so we 9 // thread, but all other operations and method calls happen on IO thread, so we
10 // need to be extra careful about the lifetime of this object. AudioManager is a 10 // need to be extra careful about the lifetime of this object. AudioManager is a
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 MediaStreamManager* media_stream_manager); 75 MediaStreamManager* media_stream_manager);
76 76
77 // Calls |callback| with the list of AudioOutputControllers for this object. 77 // Calls |callback| with the list of AudioOutputControllers for this object.
78 void GetOutputControllers( 78 void GetOutputControllers(
79 int render_view_id, 79 int render_view_id,
80 const RenderViewHost::GetAudioOutputControllersCallback& callback) const; 80 const RenderViewHost::GetAudioOutputControllersCallback& callback) const;
81 81
82 // BrowserMessageFilter implementation. 82 // BrowserMessageFilter implementation.
83 virtual void OnChannelClosing() OVERRIDE; 83 virtual void OnChannelClosing() OVERRIDE;
84 virtual void OnDestruct() const OVERRIDE; 84 virtual void OnDestruct() const OVERRIDE;
85 virtual bool OnMessageReceived(const IPC::Message& message, 85 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
86 bool* message_was_ok) OVERRIDE;
87 86
88 private: 87 private:
89 friend class AudioRendererHostTest; 88 friend class AudioRendererHostTest;
90 friend class BrowserThread; 89 friend class BrowserThread;
91 friend class base::DeleteHelper<AudioRendererHost>; 90 friend class base::DeleteHelper<AudioRendererHost>;
92 friend class MockAudioRendererHost; 91 friend class MockAudioRendererHost;
93 friend class TestAudioRendererHost; 92 friend class TestAudioRendererHost;
94 FRIEND_TEST_ALL_PREFIXES(AudioRendererHostTest, CreateMockStream); 93 FRIEND_TEST_ALL_PREFIXES(AudioRendererHostTest, CreateMockStream);
95 FRIEND_TEST_ALL_PREFIXES(AudioRendererHostTest, MockStreamDataConversation); 94 FRIEND_TEST_ALL_PREFIXES(AudioRendererHostTest, MockStreamDataConversation);
96 95
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 164
166 // A map of stream IDs to audio sources. 165 // A map of stream IDs to audio sources.
167 AudioEntryMap audio_entries_; 166 AudioEntryMap audio_entries_;
168 167
169 DISALLOW_COPY_AND_ASSIGN(AudioRendererHost); 168 DISALLOW_COPY_AND_ASSIGN(AudioRendererHost);
170 }; 169 };
171 170
172 } // namespace content 171 } // namespace content
173 172
174 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_RENDERER_HOST_H_ 173 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_RENDERER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698