| 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/host/chromoting_host_context.h" | 5 #include "remoting/host/chromoting_host_context.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/threading/thread.h" | 10 #include "base/threading/thread.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 ui_task_runner_); | 62 ui_task_runner_); |
| 63 desktop_task_runner_ = | 63 desktop_task_runner_ = |
| 64 new AutoThreadTaskRunner(desktop_thread_.message_loop_proxy(), | 64 new AutoThreadTaskRunner(desktop_thread_.message_loop_proxy(), |
| 65 ui_task_runner_); | 65 ui_task_runner_); |
| 66 encode_task_runner_ = | 66 encode_task_runner_ = |
| 67 new AutoThreadTaskRunner(encode_thread_.message_loop_proxy(), | 67 new AutoThreadTaskRunner(encode_thread_.message_loop_proxy(), |
| 68 ui_task_runner_); | 68 ui_task_runner_); |
| 69 file_task_runner_ = | 69 file_task_runner_ = |
| 70 new AutoThreadTaskRunner(file_thread_.message_loop_proxy(), | 70 new AutoThreadTaskRunner(file_thread_.message_loop_proxy(), |
| 71 ui_task_runner_); | 71 ui_task_runner_); |
| 72 | |
| 73 network_task_runner_ = | 72 network_task_runner_ = |
| 74 new AutoThreadTaskRunner(network_thread_.message_loop_proxy(), | 73 new AutoThreadTaskRunner(network_thread_.message_loop_proxy(), |
| 75 ui_task_runner_); | 74 ui_task_runner_); |
| 75 |
| 76 url_request_context_getter_ = new URLRequestContextGetter( | 76 url_request_context_getter_ = new URLRequestContextGetter( |
| 77 ui_task_runner(), network_task_runner(), | 77 ui_task_runner(), network_task_runner(), |
| 78 static_cast<MessageLoopForIO*>(file_thread_.message_loop())); | 78 static_cast<MessageLoopForIO*>(file_thread_.message_loop())); |
| 79 return true; | 79 return true; |
| 80 } | 80 } |
| 81 | 81 |
| 82 base::SingleThreadTaskRunner* ChromotingHostContext::audio_task_runner() { | 82 base::SingleThreadTaskRunner* ChromotingHostContext::audio_task_runner() { |
| 83 return audio_task_runner_; | 83 return audio_task_runner_; |
| 84 } | 84 } |
| 85 | 85 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 107 return ui_task_runner_; | 107 return ui_task_runner_; |
| 108 } | 108 } |
| 109 | 109 |
| 110 const scoped_refptr<net::URLRequestContextGetter>& | 110 const scoped_refptr<net::URLRequestContextGetter>& |
| 111 ChromotingHostContext::url_request_context_getter() { | 111 ChromotingHostContext::url_request_context_getter() { |
| 112 DCHECK(url_request_context_getter_.get()); | 112 DCHECK(url_request_context_getter_.get()); |
| 113 return url_request_context_getter_; | 113 return url_request_context_getter_; |
| 114 } | 114 } |
| 115 | 115 |
| 116 } // namespace remoting | 116 } // namespace remoting |
| OLD | NEW |