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

Unified Diff: ipc/handle_attachment_win.cc

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/handle_attachment_win.h ('k') | ipc/handle_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/handle_attachment_win.cc
diff --git a/ipc/handle_attachment_win.cc b/ipc/handle_attachment_win.cc
index 994b22dddca2e90df60db91ca1df906cdc6ea153..50e3e6dab24310c5bba54d5f44cfa42cb436630e 100644
--- a/ipc/handle_attachment_win.cc
+++ b/ipc/handle_attachment_win.cc
@@ -9,17 +9,20 @@
namespace IPC {
namespace internal {
-HandleAttachmentWin::HandleAttachmentWin(const HANDLE& handle)
- : handle_(handle) {
-}
+HandleAttachmentWin::HandleAttachmentWin(const HANDLE& handle,
+ HandleWin::Permissions permissions)
+ : handle_(handle), permissions_(permissions) {}
HandleAttachmentWin::HandleAttachmentWin(const WireFormat& wire_format)
: BrokerableAttachment(wire_format.attachment_id, false),
- handle_(LongToHandle(wire_format.handle)) {}
+ handle_(LongToHandle(wire_format.handle)),
+ permissions_(wire_format.permissions) {}
HandleAttachmentWin::HandleAttachmentWin(
const BrokerableAttachment::AttachmentId& id)
- : BrokerableAttachment(id, true), handle_(INVALID_HANDLE_VALUE) {}
+ : BrokerableAttachment(id, true),
+ handle_(INVALID_HANDLE_VALUE),
+ permissions_(HandleWin::INVALID) {}
HandleAttachmentWin::~HandleAttachmentWin() {
}
@@ -48,6 +51,7 @@ HandleAttachmentWin::WireFormat HandleAttachmentWin::GetWireFormat(
format.handle = HandleToLong(handle_);
format.attachment_id = GetIdentifier();
format.destination_process = destination;
+ format.permissions = permissions_;
return format;
}
« no previous file with comments | « ipc/handle_attachment_win.h ('k') | ipc/handle_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698