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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/threading/thread_restrictions.h" | 8 #include "base/threading/thread_restrictions.h" |
| 9 #include "build/build_config.h" |
9 #include "remoting/base/auto_thread.h" | 10 #include "remoting/base/auto_thread.h" |
10 #include "remoting/base/url_request_context_getter.h" | 11 #include "remoting/base/url_request_context_getter.h" |
11 | 12 |
12 namespace remoting { | 13 namespace remoting { |
13 | 14 |
14 namespace { | 15 namespace { |
15 | 16 |
16 void DisallowBlockingOperations() { | 17 void DisallowBlockingOperations() { |
17 base::ThreadRestrictions::SetIOAllowed(false); | 18 base::ThreadRestrictions::SetIOAllowed(false); |
18 base::ThreadRestrictions::DisallowWaiting(); | 19 base::ThreadRestrictions::DisallowWaiting(); |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 file_auto_task_runner, | 159 file_auto_task_runner, |
159 ui_auto_task_runner, // input_task_runner | 160 ui_auto_task_runner, // input_task_runner |
160 io_auto_task_runner, // network_task_runner | 161 io_auto_task_runner, // network_task_runner |
161 ui_auto_task_runner, // video_capture_task_runner | 162 ui_auto_task_runner, // video_capture_task_runner |
162 AutoThread::Create("ChromotingEncodeThread", file_auto_task_runner), | 163 AutoThread::Create("ChromotingEncodeThread", file_auto_task_runner), |
163 url_request_context_getter)); | 164 url_request_context_getter)); |
164 } | 165 } |
165 #endif // defined(OS_CHROMEOS) | 166 #endif // defined(OS_CHROMEOS) |
166 | 167 |
167 } // namespace remoting | 168 } // namespace remoting |
OLD | NEW |