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

Unified Diff: ipc/ipc_channel_posix.h

Issue 695353005: Non-SFI mode: Use dummy PID for NaCl's IPC channel on Linux platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
Index: ipc/ipc_channel_posix.h
diff --git a/ipc/ipc_channel_posix.h b/ipc/ipc_channel_posix.h
index 1cb76102c3905eba818929ed536a73f47f048111..e543c16c61e1c723cfc1a365184305f7b105837d 100644
--- a/ipc/ipc_channel_posix.h
+++ b/ipc/ipc_channel_posix.h
@@ -85,9 +85,9 @@ class IPC_EXPORT ChannelPosix : public Channel,
void CloseClientFileDescriptor();
static bool IsNamedServerInitialized(const std::string& channel_id);
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_NACL_NONSFI)
static void SetGlobalPid(int pid);
-#endif // OS_LINUX
+#endif // defined(OS_LINUX) || defined(OS_NACL_NONSFI)
private:
bool CreatePipe(const IPC::ChannelHandle& channel_handle);
@@ -212,10 +212,10 @@ class IPC_EXPORT ChannelPosix : public Channel,
// True if we are responsible for unlinking the unix domain socket file.
bool must_unlink_;
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_NACL_NONSFI)
// If non-zero, overrides the process ID sent in the hello message.
static int global_pid_;
-#endif // OS_LINUX
+#endif // defined(OS_LINUX) || defined(OS_NACL_NONSFI)
DISALLOW_IMPLICIT_CONSTRUCTORS(ChannelPosix);
};

Powered by Google App Engine
This is Rietveld 408576698