| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/setup/daemon_controller.h" | 5 #include "remoting/host/setup/daemon_controller.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| 11 #include "base/message_loop/message_loop.h" |
| 11 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
| 12 #include "base/threading/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
| 13 #include "base/values.h" | 14 #include "base/values.h" |
| 14 #include "build/build_config.h" | 15 #include "build/build_config.h" |
| 15 #include "remoting/base/auto_thread.h" | 16 #include "remoting/base/auto_thread.h" |
| 16 #include "remoting/base/auto_thread_task_runner.h" | 17 #include "remoting/base/auto_thread_task_runner.h" |
| 17 | 18 |
| 18 namespace remoting { | 19 namespace remoting { |
| 19 | 20 |
| 20 // Name of the Daemon Controller's worker thread. | 21 // Name of the Daemon Controller's worker thread. |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 if (!servicing_request) | 194 if (!servicing_request) |
| 194 ServiceNextRequest(); | 195 ServiceNextRequest(); |
| 195 } | 196 } |
| 196 | 197 |
| 197 void DaemonController::ServiceNextRequest() { | 198 void DaemonController::ServiceNextRequest() { |
| 198 if (!pending_requests_.empty()) | 199 if (!pending_requests_.empty()) |
| 199 delegate_task_runner_->PostTask(FROM_HERE, pending_requests_.front()); | 200 delegate_task_runner_->PostTask(FROM_HERE, pending_requests_.front()); |
| 200 } | 201 } |
| 201 | 202 |
| 202 } // namespace remoting | 203 } // namespace remoting |
| OLD | NEW |