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

Unified Diff: ipc/attachment_broker_win.h

Issue 1184523003: attachment broker wip (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor comments. 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
« no previous file with comments | « ipc/attachment_broker.h ('k') | ipc/attachment_broker_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/attachment_broker_win.h
diff --git a/ipc/attachment_broker_win.h b/ipc/attachment_broker_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..4c7f71d1c26bfde86022b50380627b000a8aa49b
--- /dev/null
+++ b/ipc/attachment_broker_win.h
@@ -0,0 +1,37 @@
+// 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.
+
+#ifndef IPC_ATTACHMENT_BROKER_WIN_H_
+#define IPC_ATTACHMENT_BROKER_WIN_H_
+
+#include <vector>
+
+#include "base/memory/singleton.h"
+#include "ipc/attachment_broker.h"
+#include "ipc/ipc_export.h"
+#include "ipc/ipc_sender.h"
+
+namespace IPC {
+
+// This class is an implementation of AttachmentBroker for the Windows platform.
+class IPC_EXPORT AttachmentBrokerWin : public IPC::AttachmentBroker {
+ public:
+ AttachmentBrokerWin();
+ virtual ~AttachmentBrokerWin();
+
+ // In a non-broker process, the singleton instance of this class listens for
+ // an IPC from the broker process indicating that a new attachment has been
+ // duplicated.
+ void OnReceiveDuplicatedHandle(HANDLE, BrokerableAttachmentId);
+
+ // IPC::AttachmentBroker overrides.
+ void SendAttachmentToProcess(internal::BrokerableAttachment* attachment,
+ base::ProcessId destination_process) override;
+ bool GetAttachmentWithId(BrokerableAttachmentId,
+ internal::BrokerableAttachment*) override;
+};
+
+} // namespace IPC
+
+#endif // IPC_ATTACHMENT_BROKER_WIN_H_
« no previous file with comments | « ipc/attachment_broker.h ('k') | ipc/attachment_broker_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698