OLD | NEW |
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 #include "remoting/client/audio_decode_scheduler.h" | 5 #include "remoting/client/audio_decode_scheduler.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/macros.h" |
9 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
10 #include "remoting/client/audio_player.h" | 11 #include "remoting/client/audio_player.h" |
11 #include "remoting/codec/audio_decoder.h" | 12 #include "remoting/codec/audio_decoder.h" |
12 #include "remoting/proto/audio.pb.h" | 13 #include "remoting/proto/audio.pb.h" |
13 | 14 |
14 namespace remoting { | 15 namespace remoting { |
15 | 16 |
16 class AudioDecodeScheduler::Core : public base::RefCountedThreadSafe<Core> { | 17 class AudioDecodeScheduler::Core : public base::RefCountedThreadSafe<Core> { |
17 public: | 18 public: |
18 Core(scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 19 Core(scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 void AudioDecodeScheduler::Initialize(const protocol::SessionConfig& config) { | 115 void AudioDecodeScheduler::Initialize(const protocol::SessionConfig& config) { |
115 core_->Initialize(config); | 116 core_->Initialize(config); |
116 } | 117 } |
117 | 118 |
118 void AudioDecodeScheduler::ProcessAudioPacket(scoped_ptr<AudioPacket> packet, | 119 void AudioDecodeScheduler::ProcessAudioPacket(scoped_ptr<AudioPacket> packet, |
119 const base::Closure& done) { | 120 const base::Closure& done) { |
120 core_->ProcessAudioPacket(packet.Pass(), done); | 121 core_->ProcessAudioPacket(packet.Pass(), done); |
121 } | 122 } |
122 | 123 |
123 } // namespace remoting | 124 } // namespace remoting |
OLD | NEW |