| 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/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
| 12 #include "base/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "remoting/base/auto_thread.h" | 15 #include "remoting/base/auto_thread.h" |
| 16 #include "remoting/base/auto_thread_task_runner.h" | 16 #include "remoting/base/auto_thread_task_runner.h" |
| 17 | 17 |
| 18 namespace remoting { | 18 namespace remoting { |
| 19 | 19 |
| 20 // Name of the Daemon Controller's worker thread. | 20 // Name of the Daemon Controller's worker thread. |
| 21 const char kDaemonControllerThreadName[] = "Daemon Controller thread"; | 21 const char kDaemonControllerThreadName[] = "Daemon Controller thread"; |
| 22 | 22 |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 if (!servicing_request) | 193 if (!servicing_request) |
| 194 ServiceNextRequest(); | 194 ServiceNextRequest(); |
| 195 } | 195 } |
| 196 | 196 |
| 197 void DaemonController::ServiceNextRequest() { | 197 void DaemonController::ServiceNextRequest() { |
| 198 if (!pending_requests_.empty()) | 198 if (!pending_requests_.empty()) |
| 199 delegate_task_runner_->PostTask(FROM_HERE, pending_requests_.front()); | 199 delegate_task_runner_->PostTask(FROM_HERE, pending_requests_.front()); |
| 200 } | 200 } |
| 201 | 201 |
| 202 } // namespace remoting | 202 } // namespace remoting |
| OLD | NEW |