| 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/client_context.h" | 5 #include "remoting/client/client_context.h" |
| 6 #include "base/single_thread_task_runner.h" |
| 6 | 7 |
| 7 namespace remoting { | 8 namespace remoting { |
| 8 | 9 |
| 9 ClientContext::ClientContext( | 10 ClientContext::ClientContext( |
| 10 const scoped_refptr<base::SingleThreadTaskRunner>& main_task_runner) | 11 const scoped_refptr<base::SingleThreadTaskRunner>& main_task_runner) |
| 11 : main_task_runner_(main_task_runner), | 12 : main_task_runner_(main_task_runner), |
| 12 decode_thread_("ChromotingClientDecodeThread"), | 13 decode_thread_("ChromotingClientDecodeThread"), |
| 13 audio_decode_thread_("ChromotingClientAudioDecodeThread") { | 14 audio_decode_thread_("ChromotingClientAudioDecodeThread") { |
| 14 } | 15 } |
| 15 | 16 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 37 const { | 38 const { |
| 38 return decode_thread_.task_runner(); | 39 return decode_thread_.task_runner(); |
| 39 } | 40 } |
| 40 | 41 |
| 41 scoped_refptr<base::SingleThreadTaskRunner> | 42 scoped_refptr<base::SingleThreadTaskRunner> |
| 42 ClientContext::audio_decode_task_runner() const { | 43 ClientContext::audio_decode_task_runner() const { |
| 43 return audio_decode_thread_.task_runner(); | 44 return audio_decode_thread_.task_runner(); |
| 44 } | 45 } |
| 45 | 46 |
| 46 } // namespace remoting | 47 } // namespace remoting |
| OLD | NEW |