OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 BASE_POSIX_UNIX_DOMAIN_SOCKET_LINUX_H_ | 5 #ifndef BASE_POSIX_UNIX_DOMAIN_SOCKET_LINUX_H_ |
6 #define BASE_POSIX_UNIX_DOMAIN_SOCKET_LINUX_H_ | 6 #define BASE_POSIX_UNIX_DOMAIN_SOCKET_LINUX_H_ |
7 | 7 |
| 8 #include <stddef.h> |
8 #include <stdint.h> | 9 #include <stdint.h> |
9 #include <sys/types.h> | 10 #include <sys/types.h> |
10 #include <vector> | 11 #include <vector> |
11 | 12 |
12 #include "base/base_export.h" | 13 #include "base/base_export.h" |
13 #include "base/files/scoped_file.h" | 14 #include "base/files/scoped_file.h" |
14 #include "base/process/process_handle.h" | 15 #include "base/process/process_handle.h" |
| 16 #include "build/build_config.h" |
15 | 17 |
16 namespace base { | 18 namespace base { |
17 | 19 |
18 class Pickle; | 20 class Pickle; |
19 | 21 |
20 class BASE_EXPORT UnixDomainSocket { | 22 class BASE_EXPORT UnixDomainSocket { |
21 public: | 23 public: |
22 // Maximum number of file descriptors that can be read by RecvMsg(). | 24 // Maximum number of file descriptors that can be read by RecvMsg(). |
23 static const size_t kMaxFileDescriptors; | 25 static const size_t kMaxFileDescriptors; |
24 | 26 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 void* msg, | 95 void* msg, |
94 size_t length, | 96 size_t length, |
95 int flags, | 97 int flags, |
96 std::vector<ScopedFD>* fds, | 98 std::vector<ScopedFD>* fds, |
97 ProcessId* pid); | 99 ProcessId* pid); |
98 }; | 100 }; |
99 | 101 |
100 } // namespace base | 102 } // namespace base |
101 | 103 |
102 #endif // BASE_POSIX_UNIX_DOMAIN_SOCKET_LINUX_H_ | 104 #endif // BASE_POSIX_UNIX_DOMAIN_SOCKET_LINUX_H_ |
OLD | NEW |