OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/client/ios/facade/host_list_fetcher.h" | 5 #include "remoting/ios/facade/host_list_fetcher.h" |
6 | 6 |
7 #include <thread> | 7 #include <thread> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
11 #include "base/json/json_reader.h" | 11 #include "base/json/json_reader.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/threading/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "net/http/http_status_code.h" | 15 #include "net/http/http_status_code.h" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 DCHECK(source); | 102 DCHECK(source); |
103 | 103 |
104 std::vector<HostInfo> hostlist; | 104 std::vector<HostInfo> hostlist; |
105 if (!ProcessResponse(&hostlist)) { | 105 if (!ProcessResponse(&hostlist)) { |
106 hostlist.clear(); | 106 hostlist.clear(); |
107 } | 107 } |
108 base::ResetAndReturn(&hostlist_callback_).Run(hostlist); | 108 base::ResetAndReturn(&hostlist_callback_).Run(hostlist); |
109 } | 109 } |
110 | 110 |
111 } // namespace remoting | 111 } // namespace remoting |
OLD | NEW |