| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "net/base/unix_domain_socket_posix.h" | 5 #include "net/base/unix_domain_socket_posix.h" |
| 6 | 6 |
| 7 #include <cstring> | 7 #include <cstring> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include <errno.h> | 10 #include <errno.h> |
| 11 #include <sys/socket.h> | 11 #include <sys/socket.h> |
| 12 #include <sys/stat.h> | 12 #include <sys/stat.h> |
| 13 #include <sys/types.h> | 13 #include <sys/types.h> |
| 14 #include <sys/un.h> | 14 #include <sys/un.h> |
| 15 #include <unistd.h> | 15 #include <unistd.h> |
| 16 | 16 |
| 17 #include "base/bind.h" | 17 #include "base/bind.h" |
| 18 #include "base/callback.h" | 18 #include "base/callback.h" |
| 19 #include "base/eintr_wrapper.h" | 19 #include "base/posix/eintr_wrapper.h" |
| 20 #include "base/threading/platform_thread.h" | 20 #include "base/threading/platform_thread.h" |
| 21 #include "build/build_config.h" | 21 #include "build/build_config.h" |
| 22 #include "net/base/net_errors.h" | 22 #include "net/base/net_errors.h" |
| 23 #include "net/base/net_util.h" | 23 #include "net/base/net_util.h" |
| 24 | 24 |
| 25 namespace net { | 25 namespace net { |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| 28 | 28 |
| 29 bool NoAuthenticationCallback(uid_t, gid_t) { | 29 bool NoAuthenticationCallback(uid_t, gid_t) { |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 scoped_refptr<StreamListenSocket> | 177 scoped_refptr<StreamListenSocket> |
| 178 UnixDomainSocketWithAbstractNamespaceFactory::CreateAndListen( | 178 UnixDomainSocketWithAbstractNamespaceFactory::CreateAndListen( |
| 179 StreamListenSocket::Delegate* delegate) const { | 179 StreamListenSocket::Delegate* delegate) const { |
| 180 return UnixDomainSocket::CreateAndListenWithAbstractNamespace( | 180 return UnixDomainSocket::CreateAndListenWithAbstractNamespace( |
| 181 path_, delegate, auth_callback_); | 181 path_, delegate, auth_callback_); |
| 182 } | 182 } |
| 183 | 183 |
| 184 #endif | 184 #endif |
| 185 | 185 |
| 186 } // namespace net | 186 } // namespace net |
| OLD | NEW |