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

Unified Diff: ipc/handle_attachment_win.cc

Issue 2494943002: Remove IPC::BrokerableAttachment. (Closed)
Patch Set: extra test output Created 4 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
« no previous file with comments | « ipc/handle_attachment_win.h ('k') | ipc/handle_win.cc » ('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 53d589bc8f182e1ca8f86da3ebf0d04f1eae342b..9249a5a069c65802824a74ea289072d63d5a2b0c 100644
--- a/ipc/handle_attachment_win.cc
+++ b/ipc/handle_attachment_win.cc
@@ -28,24 +28,13 @@ HandleAttachmentWin::HandleAttachmentWin(const HANDLE& handle,
FromWire from_wire)
: handle_(handle), permissions_(HandleWin::INVALID), owns_handle_(true) {}
-HandleAttachmentWin::HandleAttachmentWin(const WireFormat& wire_format)
- : handle_(LongToHandle(wire_format.handle)),
- permissions_(wire_format.permissions),
- owns_handle_(true) {}
-
HandleAttachmentWin::~HandleAttachmentWin() {
if (handle_ != INVALID_HANDLE_VALUE && owns_handle_)
::CloseHandle(handle_);
}
-HandleAttachmentWin::BrokerableType HandleAttachmentWin::GetBrokerableType()
- const {
- return WIN_HANDLE;
-}
-
-HandleAttachmentWin::WireFormat HandleAttachmentWin::GetWireFormat(
- const base::ProcessId& destination) const {
- return WireFormat(HandleToLong(handle_), destination, permissions_);
+MessageAttachment::Type HandleAttachmentWin::GetType() const {
+ return Type::WIN_HANDLE;
}
} // namespace internal
« no previous file with comments | « ipc/handle_attachment_win.h ('k') | ipc/handle_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698