OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/gnubby_auth_handler_posix.h" | 5 #include "remoting/host/gnubby_auth_handler_posix.h" |
6 | 6 |
7 #include <unistd.h> | 7 #include <unistd.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/file_util.h" | 11 #include "base/files/file_util.h" |
12 #include "base/json/json_reader.h" | 12 #include "base/json/json_reader.h" |
13 #include "base/json/json_writer.h" | 13 #include "base/json/json_writer.h" |
14 #include "base/lazy_instance.h" | 14 #include "base/lazy_instance.h" |
15 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "net/socket/unix_domain_listen_socket_posix.h" | 17 #include "net/socket/unix_domain_listen_socket_posix.h" |
18 #include "remoting/base/logging.h" | 18 #include "remoting/base/logging.h" |
19 #include "remoting/host/gnubby_socket.h" | 19 #include "remoting/host/gnubby_socket.h" |
20 #include "remoting/proto/control.pb.h" | 20 #include "remoting/proto/control.pb.h" |
21 #include "remoting/protocol/client_stub.h" | 21 #include "remoting/protocol/client_stub.h" |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 } | 298 } |
299 | 299 |
300 void GnubbyAuthHandlerPosix::RequestTimedOut(int connection_id) { | 300 void GnubbyAuthHandlerPosix::RequestTimedOut(int connection_id) { |
301 HOST_LOG << "Gnubby request timed out"; | 301 HOST_LOG << "Gnubby request timed out"; |
302 ActiveSockets::iterator iter = active_sockets_.find(connection_id); | 302 ActiveSockets::iterator iter = active_sockets_.find(connection_id); |
303 if (iter != active_sockets_.end()) | 303 if (iter != active_sockets_.end()) |
304 SendErrorAndCloseActiveSocket(iter); | 304 SendErrorAndCloseActiveSocket(iter); |
305 } | 305 } |
306 | 306 |
307 } // namespace remoting | 307 } // namespace remoting |
OLD | NEW |