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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ipc/handle_attachment_win.cc
diff --git a/ipc/handle_attachment_win.cc b/ipc/handle_attachment_win.cc
new file mode 100644
index 0000000000000000000000000000000000000000..53f84957eeb2de6adfb8de6d91d5f1aedb34d65c
--- /dev/null
+++ b/ipc/handle_attachment_win.cc
@@ -0,0 +1,32 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ipc/handle_attachment_win.h"
+
+namespace IPC {
+namespace internal {
+
+HandleAttachmentWin::HandleAttachmentWin(const HANDLE& handle)
+ : handle_(handle) {
+}
+
+HandleAttachmentWin::~HandleAttachmentWin() {
+}
+
+HandleAttachmentWin::BrokerableType HandleAttachmentWin::GetBrokerableType()
+ const {
+ return WIN_HANDLE;
+}
+
+HandleAttachmentWin::WireFormat HandleAttachmentWin::GetWireFormat(
+ const base::ProcessId& destination) {
+ WireFormat format;
+ format.handle = handle_;
+ format.attachment_id = GetIdentifier();
+ format.destination_process = destination;
+ return format;
+}
+
+} // namespace internal
+} // namespace IPC

Powered by Google App Engine
This is Rietveld 408576698