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

Unified Diff: remoting/client/audio_decode_scheduler.h

Issue 10907187: Don't use base::Unretained in AudioDecodeScheduler. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/client/audio_decode_scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/audio_decode_scheduler.h
diff --git a/remoting/client/audio_decode_scheduler.h b/remoting/client/audio_decode_scheduler.h
index be5cfcfae2d1635ff9f1605eef475d31c1d52f31..95f745d67cce1b21802e2ad902f8dc7aa99628df 100644
--- a/remoting/client/audio_decode_scheduler.h
+++ b/remoting/client/audio_decode_scheduler.h
@@ -39,17 +39,9 @@ class AudioDecodeScheduler : public protocol::AudioStub {
const base::Closure& done) OVERRIDE;
private:
- // Called on the audio decoder thread.
- void DecodePacket(scoped_ptr<AudioPacket> packet, const base::Closure& done);
+ class Core;
- // Called on the main thread.
- void ProcessDecodedPacket(scoped_ptr<AudioPacket> packet,
- const base::Closure& done);
-
- scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
- scoped_refptr<base::SingleThreadTaskRunner> audio_decode_task_runner_;
- scoped_ptr<AudioDecoder> decoder_;
- scoped_ptr<AudioPlayer> audio_player_;
+ scoped_refptr<Core> core_;
DISALLOW_COPY_AND_ASSIGN(AudioDecodeScheduler);
};
« no previous file with comments | « no previous file | remoting/client/audio_decode_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698