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 #ifndef NET_BASE_UNIX_DOMAIN_SOCKET_POSIX_H_ | 5 #ifndef NET_SOCKET_UNIX_DOMAIN_SOCKET_POSIX_H_ |
6 #define NET_BASE_UNIX_DOMAIN_SOCKET_POSIX_H_ | 6 #define NET_SOCKET_UNIX_DOMAIN_SOCKET_POSIX_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
15 #include "net/base/net_export.h" | 15 #include "net/base/net_export.h" |
16 #include "net/base/stream_listen_socket.h" | 16 #include "net/socket/stream_listen_socket.h" |
17 | 17 |
18 #if defined(OS_ANDROID) || defined(OS_LINUX) | 18 #if defined(OS_ANDROID) || defined(OS_LINUX) |
19 // Feature only supported on Linux currently. This lets the Unix Domain Socket | 19 // Feature only supported on Linux currently. This lets the Unix Domain Socket |
20 // not be backed by the file system. | 20 // not be backed by the file system. |
21 #define SOCKET_ABSTRACT_NAMESPACE_SUPPORTED | 21 #define SOCKET_ABSTRACT_NAMESPACE_SUPPORTED |
22 #endif | 22 #endif |
23 | 23 |
24 namespace net { | 24 namespace net { |
25 | 25 |
26 // Unix Domain Socket Implementation. Supports abstract namespaces on Linux. | 26 // Unix Domain Socket Implementation. Supports abstract namespaces on Linux. |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 virtual scoped_refptr<StreamListenSocket> CreateAndListen( | 110 virtual scoped_refptr<StreamListenSocket> CreateAndListen( |
111 StreamListenSocket::Delegate* delegate) const OVERRIDE; | 111 StreamListenSocket::Delegate* delegate) const OVERRIDE; |
112 | 112 |
113 private: | 113 private: |
114 DISALLOW_COPY_AND_ASSIGN(UnixDomainSocketWithAbstractNamespaceFactory); | 114 DISALLOW_COPY_AND_ASSIGN(UnixDomainSocketWithAbstractNamespaceFactory); |
115 }; | 115 }; |
116 #endif | 116 #endif |
117 | 117 |
118 } // namespace net | 118 } // namespace net |
119 | 119 |
120 #endif // NET_BASE_UNIX_DOMAIN_SOCKET_POSIX_H_ | 120 #endif // NET_SOCKET_UNIX_DOMAIN_SOCKET_POSIX_H_ |
OLD | NEW |