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 "apps/app_shim/unix_domain_socket_acceptor.h" | 5 #include "chrome/browser/apps/app_shim/unix_domain_socket_acceptor.h" |
6 | 6 |
7 #include "base/files/file_util.h" | 7 #include "base/files/file_util.h" |
8 #include "base/files/scoped_file.h" | 8 #include "base/files/scoped_file.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "ipc/unix_domain_socket_util.h" | 10 #include "ipc/unix_domain_socket_util.h" |
11 | 11 |
12 namespace apps { | 12 namespace apps { |
13 | 13 |
14 UnixDomainSocketAcceptor::UnixDomainSocketAcceptor(const base::FilePath& path, | 14 UnixDomainSocketAcceptor::UnixDomainSocketAcceptor(const base::FilePath& path, |
15 Delegate* delegate) | 15 Delegate* delegate) |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 PLOG(ERROR) << "close"; | 81 PLOG(ERROR) << "close"; |
82 listen_fd_ = -1; | 82 listen_fd_ = -1; |
83 if (unlink(path_.value().c_str()) < 0) | 83 if (unlink(path_.value().c_str()) < 0) |
84 PLOG(ERROR) << "unlink"; | 84 PLOG(ERROR) << "unlink"; |
85 | 85 |
86 // Unregister libevent for the listening socket and close it. | 86 // Unregister libevent for the listening socket and close it. |
87 server_listen_connection_watcher_.StopWatchingFileDescriptor(); | 87 server_listen_connection_watcher_.StopWatchingFileDescriptor(); |
88 } | 88 } |
89 | 89 |
90 } // namespace apps | 90 } // namespace apps |
OLD | NEW |