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

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

Issue 1186943003: Revert of Add support for the audio-output-device switching IPC mechanism to the renderer lower... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 // Closes the stream. Make sure to call this before the object is 45 // Closes the stream. Make sure to call this before the object is
46 // destructed. 46 // destructed.
47 void ShutDown(); 47 void ShutDown();
48 48
49 // media::AudioOutputIPCDelegate implementation. 49 // media::AudioOutputIPCDelegate implementation.
50 void OnStateChanged(media::AudioOutputIPCDelegateState state) override; 50 void OnStateChanged(media::AudioOutputIPCDelegateState state) override;
51 void OnStreamCreated(base::SharedMemoryHandle handle, 51 void OnStreamCreated(base::SharedMemoryHandle handle,
52 base::SyncSocket::Handle socket_handle, 52 base::SyncSocket::Handle socket_handle,
53 int length) override; 53 int length) override;
54 void OnOutputDeviceSwitched(int request_id,
55 media::SwitchOutputDeviceResult result) override;
56 void OnIPCClosed() override; 54 void OnIPCClosed() override;
57 55
58 protected: 56 protected:
59 ~PepperPlatformAudioOutput() override; 57 ~PepperPlatformAudioOutput() override;
60 58
61 private: 59 private:
62 friend class base::RefCountedThreadSafe<PepperPlatformAudioOutput>; 60 friend class base::RefCountedThreadSafe<PepperPlatformAudioOutput>;
63 61
64 PepperPlatformAudioOutput(); 62 PepperPlatformAudioOutput();
65 63
(...skipping 18 matching lines...) Expand all
84 82
85 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; 83 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
86 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; 84 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
87 85
88 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioOutput); 86 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioOutput);
89 }; 87 };
90 88
91 } // namespace content 89 } // namespace content
92 90
93 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_ 91 #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