Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1007)

Unified Diff: ipc/mojo/ipc_channel_mojo.cc

Issue 2037773003: Make ChannelMojo compile under NaCl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Windows build. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ipc/mojo/ipc_channel_mojo.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/mojo/ipc_channel_mojo.cc
diff --git a/ipc/mojo/ipc_channel_mojo.cc b/ipc/mojo/ipc_channel_mojo.cc
index 904e1e8b2e20a192f47b65bb8689971080cff9c7..db089d6cb6191e11fdcfb5117b36f893f4f965d7 100644
--- a/ipc/mojo/ipc_channel_mojo.cc
+++ b/ipc/mojo/ipc_channel_mojo.cc
@@ -27,7 +27,7 @@
#include "mojo/edk/embedder/embedder.h"
#include "mojo/public/cpp/bindings/binding.h"
-#if defined(OS_POSIX) && !defined(OS_NACL)
+#if defined(OS_POSIX)
#include "ipc/ipc_platform_file_attachment_posix.h"
#endif
@@ -84,7 +84,7 @@ MojoResult WrapPlatformHandle(mojo::edk::ScopedPlatformHandle handle,
return MOJO_RESULT_OK;
}
-#if defined(OS_POSIX) && !defined(OS_NACL)
+#if defined(OS_POSIX)
base::ScopedFD TakeOrDupFile(internal::PlatformFileAttachment* attachment) {
return attachment->Owns() ? base::ScopedFD(attachment->TakePlatformFile())
@@ -101,7 +101,7 @@ MojoResult WrapAttachmentImpl(MessageAttachment* attachment,
mojom::SerializedHandle::Type::MOJO_HANDLE);
return MOJO_RESULT_OK;
}
-#if defined(OS_POSIX) && !defined(OS_NACL)
+#if defined(OS_POSIX)
if (attachment->GetType() == MessageAttachment::TYPE_PLATFORM_FILE) {
// We dup() the handles in IPC::Message to transmit.
// IPC::MessageAttachmentSet has intricate lifecycle semantics
@@ -379,7 +379,7 @@ void ChannelMojo::OnMessageReceived(const Message& message) {
listener_->OnBadMessageReceived(message);
}
-#if defined(OS_POSIX) && !defined(OS_NACL)
+#if defined(OS_POSIX) && !defined(OS_NACL_SFI)
int ChannelMojo::GetClientFileDescriptor() const {
return -1;
}
@@ -387,7 +387,7 @@ int ChannelMojo::GetClientFileDescriptor() const {
base::ScopedFD ChannelMojo::TakeClientFileDescriptor() {
return base::ScopedFD(GetClientFileDescriptor());
}
-#endif // defined(OS_POSIX) && !defined(OS_NACL)
+#endif // defined(OS_POSIX) && !defined(OS_NACL_SFI)
// static
MojoResult ChannelMojo::ReadFromMessageAttachmentSet(
« no previous file with comments | « ipc/mojo/ipc_channel_mojo.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698