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

Unified Diff: ipc/ipc_handle_win.h

Issue 1188923003: Stub in more IPC attachment brokering functionality. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change the wireformat to use int32_t for HANDLE. Created 5 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
Index: ipc/ipc_handle_win.h
diff --git a/ipc/ipc_handle_win.h b/ipc/ipc_handle_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..47779bdefcdc53b462ea956e3c305651ef62d717
--- /dev/null
+++ b/ipc/ipc_handle_win.h
@@ -0,0 +1,22 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IPC_HANDLE_WIN_H_
+#define IPC_HANDLE_WIN_H_
+
+#include <windows.h>
+
+namespace IPC {
+
+// This class is a wrapper around HANDLE. It can be passed between Chrome
+// processes via Chrome IPC.
+struct HandleForTransit {
+ HANDLE handle;
+};
+
+HandleForTransit CreateHandleForTransit(HANDLE handle);
+
+} // namespace IPC
+
+#endif // IPC_HANDLE_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698