| 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/protocol/pairing_registry.h" | 5 #include "remoting/protocol/pairing_registry.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <utility> |
| 10 |
| 9 #include "base/base64.h" | 11 #include "base/base64.h" |
| 10 #include "base/bind.h" | 12 #include "base/bind.h" |
| 11 #include "base/guid.h" | 13 #include "base/guid.h" |
| 12 #include "base/json/json_string_value_serializer.h" | 14 #include "base/json/json_string_value_serializer.h" |
| 13 #include "base/location.h" | 15 #include "base/location.h" |
| 14 #include "base/macros.h" | 16 #include "base/macros.h" |
| 15 #include "base/single_thread_task_runner.h" | 17 #include "base/single_thread_task_runner.h" |
| 16 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
| 17 #include "base/thread_task_runner_handle.h" | 19 #include "base/thread_task_runner_handle.h" |
| 18 #include "base/values.h" | 20 #include "base/values.h" |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 | 298 |
| 297 void PairingRegistry::ServiceNextRequest() { | 299 void PairingRegistry::ServiceNextRequest() { |
| 298 if (pending_requests_.empty()) | 300 if (pending_requests_.empty()) |
| 299 return; | 301 return; |
| 300 | 302 |
| 301 PostTask(delegate_task_runner_, FROM_HERE, pending_requests_.front()); | 303 PostTask(delegate_task_runner_, FROM_HERE, pending_requests_.front()); |
| 302 } | 304 } |
| 303 | 305 |
| 304 } // namespace protocol | 306 } // namespace protocol |
| 305 } // namespace remoting | 307 } // namespace remoting |
| OLD | NEW |