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

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

Issue 2289543003: IPC->mojo of audio_renderer_host (Closed)
Patch Set: New interface. Created 4 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_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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 // Sets the volume. Returns false on error or if called before the stream 46 // Sets the volume. Returns false on error or if called before the stream
47 // is created or after the stream is closed. 47 // is created or after the stream is closed.
48 bool SetVolume(double volume); 48 bool SetVolume(double volume);
49 49
50 // Closes the stream. Make sure to call this before the object is 50 // Closes the stream. Make sure to call this before the object is
51 // destructed. 51 // destructed.
52 void ShutDown(); 52 void ShutDown();
53 53
54 // media::AudioOutputIPCDelegate implementation. 54 // media::AudioOutputIPCDelegate implementation.
55 void OnStateChanged(media::AudioOutputIPCDelegateState state) override;
56 void OnDeviceAuthorized(media::OutputDeviceStatus device_status, 55 void OnDeviceAuthorized(media::OutputDeviceStatus device_status,
57 const media::AudioParameters& output_params, 56 const media::AudioParameters& output_params,
58 const std::string& matched_device_id) override; 57 const std::string& matched_device_id) override;
59 void OnStreamCreated(base::SharedMemoryHandle handle, 58 void OnStreamCreated(base::SharedMemoryHandle handle,
60 base::SyncSocket::Handle socket_handle, 59 base::SyncSocket::Handle socket_handle,
61 int length) override; 60 int length) override;
62 void OnIPCClosed() override; 61 void OnIPCClosed() override;
63 62
64 protected: 63 protected:
65 ~PepperPlatformAudioOutput() override; 64 ~PepperPlatformAudioOutput() override;
(...skipping 25 matching lines...) Expand all
91 90
92 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; 91 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
93 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; 92 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
94 93
95 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioOutput); 94 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioOutput);
96 }; 95 };
97 96
98 } // namespace content 97 } // namespace content
99 98
100 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_ 99 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698