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

Side by Side Diff: remoting/host/audio_capturer_linux.h

Issue 660803004: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 REMOTING_HOST_AUDIO_CAPTURER_LINUX_H_ 5 #ifndef REMOTING_HOST_AUDIO_CAPTURER_LINUX_H_
6 #define REMOTING_HOST_AUDIO_CAPTURER_LINUX_H_ 6 #define REMOTING_HOST_AUDIO_CAPTURER_LINUX_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "remoting/host/audio_capturer.h" 9 #include "remoting/host/audio_capturer.h"
10 #include "remoting/host/audio_silence_detector.h" 10 #include "remoting/host/audio_silence_detector.h"
(...skipping 12 matching lines...) Expand all
23 public: 23 public:
24 // Must be called to configure the capturer before the first capturer instance 24 // Must be called to configure the capturer before the first capturer instance
25 // is created. |task_runner| is an IO thread that is passed to AudioPipeReader 25 // is created. |task_runner| is an IO thread that is passed to AudioPipeReader
26 // to read from the pipe. 26 // to read from the pipe.
27 static void InitializePipeReader( 27 static void InitializePipeReader(
28 scoped_refptr<base::SingleThreadTaskRunner> task_runner, 28 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
29 const base::FilePath& pipe_name); 29 const base::FilePath& pipe_name);
30 30
31 explicit AudioCapturerLinux( 31 explicit AudioCapturerLinux(
32 scoped_refptr<AudioPipeReader> pipe_reader); 32 scoped_refptr<AudioPipeReader> pipe_reader);
33 virtual ~AudioCapturerLinux(); 33 ~AudioCapturerLinux() override;
34 34
35 // AudioCapturer interface. 35 // AudioCapturer interface.
36 virtual bool Start(const PacketCapturedCallback& callback) override; 36 bool Start(const PacketCapturedCallback& callback) override;
37 virtual void Stop() override; 37 void Stop() override;
38 virtual bool IsStarted() override; 38 bool IsStarted() override;
39 39
40 // AudioPipeReader::StreamObserver interface. 40 // AudioPipeReader::StreamObserver interface.
41 virtual void OnDataRead(scoped_refptr<base::RefCountedString> data) override; 41 void OnDataRead(scoped_refptr<base::RefCountedString> data) override;
42 42
43 private: 43 private:
44 scoped_refptr<AudioPipeReader> pipe_reader_; 44 scoped_refptr<AudioPipeReader> pipe_reader_;
45 PacketCapturedCallback callback_; 45 PacketCapturedCallback callback_;
46 46
47 AudioSilenceDetector silence_detector_; 47 AudioSilenceDetector silence_detector_;
48 48
49 DISALLOW_COPY_AND_ASSIGN(AudioCapturerLinux); 49 DISALLOW_COPY_AND_ASSIGN(AudioCapturerLinux);
50 }; 50 };
51 51
52 } // namespace remoting 52 } // namespace remoting
53 53
54 #endif // REMOTING_HOST_AUDIO_CAPTURER_LINUX_H_ 54 #endif // REMOTING_HOST_AUDIO_CAPTURER_LINUX_H_
OLDNEW
« no previous file with comments | « remoting/client/client_status_logger_unittest.cc ('k') | remoting/host/chromoting_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698