| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_COMMON_UNIX_DOMAIN_SOCKET_POSIX_H_ | 5 #ifndef CONTENT_COMMON_UNIX_DOMAIN_SOCKET_POSIX_H_ |
| 6 #define CHROME_COMMON_UNIX_DOMAIN_SOCKET_POSIX_H_ | 6 #define CONTENT_COMMON_UNIX_DOMAIN_SOCKET_POSIX_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 #include <sys/types.h> | 10 #include <sys/types.h> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 class Pickle; | 13 class Pickle; |
| 14 | 14 |
| 15 class UnixDomainSocket { | 15 class UnixDomainSocket { |
| 16 public: | 16 public: |
| (...skipping 27 matching lines...) Expand all Loading... |
| 44 // result_fd: (may be NULL) the file descriptor returned in the reply | 44 // result_fd: (may be NULL) the file descriptor returned in the reply |
| 45 // (if any) | 45 // (if any) |
| 46 // request: the bytes to send in the request | 46 // request: the bytes to send in the request |
| 47 static ssize_t SendRecvMsg(int fd, | 47 static ssize_t SendRecvMsg(int fd, |
| 48 uint8_t* reply, | 48 uint8_t* reply, |
| 49 unsigned reply_len, | 49 unsigned reply_len, |
| 50 int* result_fd, | 50 int* result_fd, |
| 51 const Pickle& request); | 51 const Pickle& request); |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 #endif // CHROME_COMMON_UNIX_DOMAIN_SOCKET_POSIX_H_ | 54 #endif // CONTENT_COMMON_UNIX_DOMAIN_SOCKET_POSIX_H_ |
| OLD | NEW |