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

Side by Side Diff: content/renderer/media/renderer_webaudiodevice_impl.h

Issue 2846843002: [blink] Unique pointers in Platform.h (Closed)
Patch Set: fix compilation (and again) Created 3 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
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_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_ 6 #define CONTENT_RENDERER_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 15 matching lines...) Expand all
26 class SilentSinkSuspender; 26 class SilentSinkSuspender;
27 } 27 }
28 28
29 namespace content { 29 namespace content {
30 class CONTENT_EXPORT RendererWebAudioDeviceImpl 30 class CONTENT_EXPORT RendererWebAudioDeviceImpl
31 : NON_EXPORTED_BASE(public blink::WebAudioDevice), 31 : NON_EXPORTED_BASE(public blink::WebAudioDevice),
32 NON_EXPORTED_BASE(public media::AudioRendererSink::RenderCallback) { 32 NON_EXPORTED_BASE(public media::AudioRendererSink::RenderCallback) {
33 public: 33 public:
34 ~RendererWebAudioDeviceImpl() override; 34 ~RendererWebAudioDeviceImpl() override;
35 35
36 static RendererWebAudioDeviceImpl* Create( 36 static std::unique_ptr<RendererWebAudioDeviceImpl> Create(
37 media::ChannelLayout layout, 37 media::ChannelLayout layout,
38 int channels, 38 int channels,
39 const blink::WebAudioLatencyHint& latency_hint, 39 const blink::WebAudioLatencyHint& latency_hint,
40 blink::WebAudioDevice::RenderCallback* callback, 40 blink::WebAudioDevice::RenderCallback* callback,
41 int session_id, 41 int session_id,
42 const url::Origin& security_origin); 42 const url::Origin& security_origin);
43 43
44 // blink::WebAudioDevice implementation. 44 // blink::WebAudioDevice implementation.
45 void Start() override; 45 void Start() override;
46 void Stop() override; 46 void Stop() override;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 // Allow unit tests to set a custom MediaThreadTaskRunner. 114 // Allow unit tests to set a custom MediaThreadTaskRunner.
115 scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_; 115 scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_;
116 116
117 DISALLOW_COPY_AND_ASSIGN(RendererWebAudioDeviceImpl); 117 DISALLOW_COPY_AND_ASSIGN(RendererWebAudioDeviceImpl);
118 }; 118 };
119 119
120 } // namespace content 120 } // namespace content
121 121
122 #endif // CONTENT_RENDERER_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_ 122 #endif // CONTENT_RENDERER_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/input/input_handler_wrapper.cc ('k') | content/renderer/media/renderer_webaudiodevice_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698