Index: base/sync_socket_posix.cc |
diff --git a/base/sync_socket_posix.cc b/base/sync_socket_posix.cc |
index 93a01d1b1c20699e134136c47d403f26837c9f44..0f1125b0634b873c73743301b9efbba3ea6bc08f 100644 |
--- a/base/sync_socket_posix.cc |
+++ b/base/sync_socket_posix.cc |
@@ -96,6 +96,20 @@ bool SyncSocket::CreatePair(SyncSocket* socket_a, SyncSocket* socket_b) { |
return true; |
} |
+// static |
+SyncSocket::Handle SyncSocket::UnwrapHandle( |
+ const TransitDescriptor& descriptor) { |
+ return descriptor.fd; |
+} |
+ |
+bool SyncSocket::PrepareTransitDescriptor(ProcessHandle peer_process_handle, |
+ TransitDescriptor* descriptor) { |
+ DCHECK(descriptor); |
tommi (sloooow) - chröme
2014/09/04 19:47:00
nit: we generally don't add DCHECKs like this when
burnik
2014/09/06 18:17:10
Done.
|
+ descriptor->fd = handle(); |
+ descriptor->auto_close = false; |
+ return descriptor->fd != kInvalidHandle; |
+} |
+ |
bool SyncSocket::Close() { |
const bool retval = CloseHandle(handle_); |
handle_ = kInvalidHandle; |