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

Side by Side Diff: content/renderer/pepper/pepper_platform_audio_output.h

Issue 1769933002: Looking up device id by session id for AudioRendererMixerInput (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment and bug ref to remove AudioManagerBase dependency Created 4 years, 8 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_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // is created or after the stream is closed. 43 // is created or after the stream is closed.
44 bool StopPlayback(); 44 bool StopPlayback();
45 45
46 // Closes the stream. Make sure to call this before the object is 46 // Closes the stream. Make sure to call this before the object is
47 // destructed. 47 // destructed.
48 void ShutDown(); 48 void ShutDown();
49 49
50 // media::AudioOutputIPCDelegate implementation. 50 // media::AudioOutputIPCDelegate implementation.
51 void OnStateChanged(media::AudioOutputIPCDelegateState state) override; 51 void OnStateChanged(media::AudioOutputIPCDelegateState state) override;
52 void OnDeviceAuthorized(media::OutputDeviceStatus device_status, 52 void OnDeviceAuthorized(media::OutputDeviceStatus device_status,
53 const media::AudioParameters& output_params) override; 53 const media::AudioParameters& output_params,
54 const std::string& matched_device_id) override;
54 void OnStreamCreated(base::SharedMemoryHandle handle, 55 void OnStreamCreated(base::SharedMemoryHandle handle,
55 base::SyncSocket::Handle socket_handle, 56 base::SyncSocket::Handle socket_handle,
56 int length) override; 57 int length) override;
57 void OnIPCClosed() override; 58 void OnIPCClosed() override;
58 59
59 protected: 60 protected:
60 ~PepperPlatformAudioOutput() override; 61 ~PepperPlatformAudioOutput() override;
61 62
62 private: 63 private:
63 friend class base::RefCountedThreadSafe<PepperPlatformAudioOutput>; 64 friend class base::RefCountedThreadSafe<PepperPlatformAudioOutput>;
(...skipping 21 matching lines...) Expand all
85 86
86 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; 87 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
87 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; 88 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
88 89
89 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioOutput); 90 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioOutput);
90 }; 91 };
91 92
92 } // namespace content 93 } // namespace content
93 94
94 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_ 95 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_
OLDNEW
« no previous file with comments | « content/renderer/media/webrtc_audio_renderer_unittest.cc ('k') | content/renderer/pepper/pepper_platform_audio_output.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698