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

Unified Diff: remoting/host/audio_scheduler.h

Issue 14520018: Create the desktop environment before any of the channel were connected. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/host/audio_scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/audio_scheduler.h
diff --git a/remoting/host/audio_scheduler.h b/remoting/host/audio_scheduler.h
index ae1a1e5ba392b0d58f4eede34d1b1b02c2c4320c..d0224f3cc24af1d2632d6a5d2b9364645ae3c97a 100644
--- a/remoting/host/audio_scheduler.h
+++ b/remoting/host/audio_scheduler.h
@@ -32,13 +32,16 @@ class AudioScheduler : public base::RefCountedThreadSafe<AudioScheduler> {
// |audio_task_runner|. |audio_stub| tasks are dispatched via the
// |network_task_runner|. The caller must ensure that the |audio_capturer| and
// |audio_stub| exist until the scheduler is stopped using Stop() method.
- static scoped_refptr<AudioScheduler> Create(
+ AudioScheduler(
scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> network_task_runner,
scoped_ptr<AudioCapturer> audio_capturer,
scoped_ptr<AudioEncoder> audio_encoder,
protocol::AudioStub* audio_stub);
+ // Starts the recording session.
+ void Start();
+
// Stops the recording session.
void Stop();
@@ -49,13 +52,6 @@ class AudioScheduler : public base::RefCountedThreadSafe<AudioScheduler> {
private:
friend class base::RefCountedThreadSafe<AudioScheduler>;
-
- AudioScheduler(
- scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner,
- scoped_refptr<base::SingleThreadTaskRunner> network_task_runner,
- scoped_ptr<AudioCapturer> audio_capturer,
- scoped_ptr<AudioEncoder> audio_encoder,
- protocol::AudioStub* audio_stub);
virtual ~AudioScheduler();
// Called on the audio thread to start capturing.
« no previous file with comments | « no previous file | remoting/host/audio_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698