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

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

Issue 2697793002: Add mojo interface+impl for audio stream control. (Closed)
Patch Set: Don't inline AudioOutputDelegate(EventHandler) dtor. Created 3 years, 9 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_BROWSER_RENDERER_HOST_MEDIA_AUDIO_OUTPUT_DELEGATE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_OUTPUT_DELEGATE_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_OUTPUT_DELEGATE_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_OUTPUT_DELEGATE_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "content/browser/renderer_host/media/audio_output_delegate.h"
14 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "media/audio/audio_output_delegate.h"
15 15
16 namespace content { 16 namespace content {
17 class AudioMirroringManager; 17 class AudioMirroringManager;
18 class AudioSyncReader; 18 class AudioSyncReader;
19 class MediaObserver; 19 class MediaObserver;
20 } 20 }
21 21
22 namespace media { 22 namespace media {
23 class AudioLog; 23 class AudioLog;
24 class AudioManager; 24 class AudioManager;
25 class AudioOutputController; 25 class AudioOutputController;
26 class AudioParameters; 26 class AudioParameters;
27 } 27 }
28 28
29 namespace content { 29 namespace content {
30 30
31 // This class, except for the AudioOutputDelegateImpl::EventHandler 31 // This class, except for the AudioOutputDelegateImpl::EventHandler
32 // implementation, is operated on the IO thread. 32 // implementation, is operated on the IO thread.
33 class CONTENT_EXPORT AudioOutputDelegateImpl : public AudioOutputDelegate { 33 class CONTENT_EXPORT AudioOutputDelegateImpl
34 : public media::AudioOutputDelegate {
34 public: 35 public:
35 AudioOutputDelegateImpl(AudioOutputDelegate::EventHandler* handler, 36 AudioOutputDelegateImpl(EventHandler* handler,
36 media::AudioManager* audio_manager, 37 media::AudioManager* audio_manager,
37 std::unique_ptr<media::AudioLog> audio_log, 38 std::unique_ptr<media::AudioLog> audio_log,
38 AudioMirroringManager* mirroring_manager, 39 AudioMirroringManager* mirroring_manager,
39 MediaObserver* media_observer, 40 MediaObserver* media_observer,
40 int stream_id, 41 int stream_id,
41 int render_frame_id, 42 int render_frame_id,
42 int render_process_id, 43 int render_process_id,
43 const media::AudioParameters& params, 44 const media::AudioParameters& params,
44 const std::string& output_device_id); 45 const std::string& output_device_id);
45 46
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // and (de)register with the stream monitor when the state actually changes. 78 // and (de)register with the stream monitor when the state actually changes.
78 bool playing_ = false; 79 bool playing_ = false;
79 base::WeakPtrFactory<AudioOutputDelegateImpl> weak_factory_; 80 base::WeakPtrFactory<AudioOutputDelegateImpl> weak_factory_;
80 81
81 DISALLOW_COPY_AND_ASSIGN(AudioOutputDelegateImpl); 82 DISALLOW_COPY_AND_ASSIGN(AudioOutputDelegateImpl);
82 }; 83 };
83 84
84 } // namespace content 85 } // namespace content
85 86
86 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_OUTPUT_DELEGATE_IMPL_H_ 87 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_OUTPUT_DELEGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698