| 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> |
| 8 |
| 7 #include "base/base64.h" | 9 #include "base/base64.h" |
| 8 #include "base/bind.h" | 10 #include "base/bind.h" |
| 9 #include "base/guid.h" | 11 #include "base/guid.h" |
| 10 #include "base/json/json_string_value_serializer.h" | 12 #include "base/json/json_string_value_serializer.h" |
| 11 #include "base/location.h" | 13 #include "base/location.h" |
| 14 #include "base/macros.h" |
| 12 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
| 13 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
| 14 #include "base/thread_task_runner_handle.h" | 17 #include "base/thread_task_runner_handle.h" |
| 15 #include "base/values.h" | 18 #include "base/values.h" |
| 16 #include "crypto/random.h" | 19 #include "crypto/random.h" |
| 17 | 20 |
| 18 namespace remoting { | 21 namespace remoting { |
| 19 namespace protocol { | 22 namespace protocol { |
| 20 | 23 |
| 21 // How many bytes of random data to use for the shared secret. | 24 // How many bytes of random data to use for the shared secret. |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 | 296 |
| 294 void PairingRegistry::ServiceNextRequest() { | 297 void PairingRegistry::ServiceNextRequest() { |
| 295 if (pending_requests_.empty()) | 298 if (pending_requests_.empty()) |
| 296 return; | 299 return; |
| 297 | 300 |
| 298 PostTask(delegate_task_runner_, FROM_HERE, pending_requests_.front()); | 301 PostTask(delegate_task_runner_, FROM_HERE, pending_requests_.front()); |
| 299 } | 302 } |
| 300 | 303 |
| 301 } // namespace protocol | 304 } // namespace protocol |
| 302 } // namespace remoting | 305 } // namespace remoting |
| OLD | NEW |