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

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

Issue 10911271: Remove CommandLine dependency from the Linux's AudioCapturer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | remoting/host/audio_capturer_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "remoting/host/audio_capturer.h" 8 #include "remoting/host/audio_capturer.h"
9 9
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/time.h" 11 #include "base/time.h"
12 #include "base/timer.h" 12 #include "base/timer.h"
13 13
14 class FilePath; 14 class FilePath;
15 15
16 namespace remoting { 16 namespace remoting {
17 17
18 class AudioCapturerLinux : public AudioCapturer, 18 class AudioCapturerLinux : public AudioCapturer,
19 public MessageLoopForIO::Watcher { 19 public MessageLoopForIO::Watcher {
20 public: 20 public:
21 // Must be called to configure the capturer before the first instance is
22 // created.
23 static void SetPipeName(const FilePath& pipe_name);
24
21 explicit AudioCapturerLinux(const FilePath& pipe_name); 25 explicit AudioCapturerLinux(const FilePath& pipe_name);
22 virtual ~AudioCapturerLinux(); 26 virtual ~AudioCapturerLinux();
23 27
24 // AudioCapturer interface. 28 // AudioCapturer interface.
25 virtual bool Start(const PacketCapturedCallback& callback) OVERRIDE; 29 virtual bool Start(const PacketCapturedCallback& callback) OVERRIDE;
26 virtual void Stop() OVERRIDE; 30 virtual void Stop() OVERRIDE;
27 virtual bool IsStarted() OVERRIDE; 31 virtual bool IsStarted() OVERRIDE;
28 32
29 // MessageLoopForIO::Watcher interface. 33 // MessageLoopForIO::Watcher interface.
30 virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; 34 virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE;
(...skipping 18 matching lines...) Expand all
49 std::string left_over_bytes_; 53 std::string left_over_bytes_;
50 54
51 MessageLoopForIO::FileDescriptorWatcher file_descriptor_watcher_; 55 MessageLoopForIO::FileDescriptorWatcher file_descriptor_watcher_;
52 56
53 DISALLOW_COPY_AND_ASSIGN(AudioCapturerLinux); 57 DISALLOW_COPY_AND_ASSIGN(AudioCapturerLinux);
54 }; 58 };
55 59
56 } // namespace remoting 60 } // namespace remoting
57 61
58 #endif // REMOTING_HOST_AUDIO_CAPTURER_LINUX_H_ 62 #endif // REMOTING_HOST_AUDIO_CAPTURER_LINUX_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/host/audio_capturer_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698