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

Side by Side Diff: ipc/handle_attachment_win.cc

Issue 1188923003: Stub in more IPC attachment brokering functionality. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing files. 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698