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

Unified Diff: ipc/handle_attachment_win.h

Issue 1281083004: ipc: Add the class HandleWin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add logging. Created 5 years, 4 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/attachment_broker_unprivileged_win_unittest.cc ('k') | ipc/handle_attachment_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/handle_attachment_win.h
diff --git a/ipc/handle_attachment_win.h b/ipc/handle_attachment_win.h
index e164cc08d89cca8d2042c88bc7456bd770473306..127cd57292e45303ecb35fc4ff675be992ac7b95 100644
--- a/ipc/handle_attachment_win.h
+++ b/ipc/handle_attachment_win.h
@@ -9,6 +9,7 @@
#include "base/process/process_handle.h"
#include "ipc/brokerable_attachment.h"
+#include "ipc/handle_win.h"
#include "ipc/ipc_export.h"
namespace IPC {
@@ -29,10 +30,12 @@ class IPC_EXPORT HandleAttachmentWin : public BrokerableAttachment {
int32_t handle;
// The id of the destination process that the handle is duplicated into.
base::ProcessId destination_process;
+ // The permissions to use when duplicating the handle.
+ HandleWin::Permissions permissions;
AttachmentId attachment_id;
};
- explicit HandleAttachmentWin(const HANDLE& handle);
+ HandleAttachmentWin(const HANDLE& handle, HandleWin::Permissions permissions);
explicit HandleAttachmentWin(const WireFormat& wire_format);
explicit HandleAttachmentWin(const BrokerableAttachment::AttachmentId& id);
@@ -47,6 +50,7 @@ class IPC_EXPORT HandleAttachmentWin : public BrokerableAttachment {
private:
~HandleAttachmentWin() override;
HANDLE handle_;
+ HandleWin::Permissions permissions_;
};
} // namespace internal
« no previous file with comments | « ipc/attachment_broker_unprivileged_win_unittest.cc ('k') | ipc/handle_attachment_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698