OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ipc/handle_attachment_win.h" |
| 6 |
| 7 namespace IPC { |
| 8 namespace internal { |
| 9 |
| 10 HandleAttachmentWin::HandleAttachmentWin(const HANDLE& handle) |
| 11 : handle_(handle) { |
| 12 } |
| 13 |
| 14 HandleAttachmentWin::~HandleAttachmentWin() { |
| 15 } |
| 16 |
| 17 HandleAttachmentWin::BrokerableType HandleAttachmentWin::GetBrokerableType() |
| 18 const { |
| 19 return WIN_HANDLE; |
| 20 } |
| 21 |
| 22 HandleAttachmentWin::WireFormat HandleAttachmentWin::GetWireFormat( |
| 23 const base::ProcessId& destination) { |
| 24 WireFormat format; |
| 25 format.handle = handle_; |
| 26 format.attachment_id = GetIdentifier(); |
| 27 format.destination_process = destination; |
| 28 return format; |
| 29 } |
| 30 |
| 31 } // namespace internal |
| 32 } // namespace IPC |
OLD | NEW |