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

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

Issue 633303002: Replace FINAL and OVERRIDE with their C++11 counterparts in content/renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_ 6 #define CONTENT_RENDERER_MEDIA_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/threading/thread_checker.h" 9 #include "base/threading/thread_checker.h"
10 #include "media/audio/audio_parameters.h" 10 #include "media/audio/audio_parameters.h"
(...skipping 16 matching lines...) Expand all
27 int session_id); 27 int session_id);
28 virtual ~RendererWebAudioDeviceImpl(); 28 virtual ~RendererWebAudioDeviceImpl();
29 29
30 // blink::WebAudioDevice implementation. 30 // blink::WebAudioDevice implementation.
31 virtual void start(); 31 virtual void start();
32 virtual void stop(); 32 virtual void stop();
33 virtual double sampleRate(); 33 virtual double sampleRate();
34 34
35 // AudioRendererSink::RenderCallback implementation. 35 // AudioRendererSink::RenderCallback implementation.
36 virtual int Render(media::AudioBus* dest, 36 virtual int Render(media::AudioBus* dest,
37 int audio_delay_milliseconds) OVERRIDE; 37 int audio_delay_milliseconds) override;
38 38
39 virtual void OnRenderError() OVERRIDE; 39 virtual void OnRenderError() override;
40 40
41 private: 41 private:
42 const media::AudioParameters params_; 42 const media::AudioParameters params_;
43 43
44 // Weak reference to the callback into WebKit code. 44 // Weak reference to the callback into WebKit code.
45 blink::WebAudioDevice::RenderCallback* const client_callback_; 45 blink::WebAudioDevice::RenderCallback* const client_callback_;
46 46
47 // To avoid the need for locking, ensure the control methods of the 47 // To avoid the need for locking, ensure the control methods of the
48 // blink::WebAudioDevice implementation are called on the same thread. 48 // blink::WebAudioDevice implementation are called on the same thread.
49 base::ThreadChecker thread_checker_; 49 base::ThreadChecker thread_checker_;
50 50
51 // When non-NULL, we are started. When NULL, we are stopped. 51 // When non-NULL, we are started. When NULL, we are stopped.
52 scoped_refptr<media::AudioOutputDevice> output_device_; 52 scoped_refptr<media::AudioOutputDevice> output_device_;
53 53
54 // ID to allow browser to select the correct input device for unified IO. 54 // ID to allow browser to select the correct input device for unified IO.
55 int session_id_; 55 int session_id_;
56 56
57 DISALLOW_COPY_AND_ASSIGN(RendererWebAudioDeviceImpl); 57 DISALLOW_COPY_AND_ASSIGN(RendererWebAudioDeviceImpl);
58 }; 58 };
59 59
60 } // namespace content 60 } // namespace content
61 61
62 #endif // CONTENT_RENDERER_MEDIA_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_ 62 #endif // CONTENT_RENDERER_MEDIA_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/media/renderer_gpu_video_accelerator_factories.h ('k') | content/renderer/media/rtc_data_channel_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698