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

Unified Diff: ipc/attachment_broker_win.h

Issue 1188923003: Stub in more IPC attachment brokering functionality. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change the wireformat to use int32_t for HANDLE. 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/attachment_broker_win.h
diff --git a/ipc/attachment_broker_win.h b/ipc/attachment_broker_win.h
index d9b927c7be9bde48860aaef1c74907a05514063a..1cf4348b68120406934172713abd6b8188a1b752 100644
--- a/ipc/attachment_broker_win.h
+++ b/ipc/attachment_broker_win.h
@@ -7,10 +7,11 @@
#include "ipc/attachment_broker.h"
#include "ipc/ipc_export.h"
-#include "ipc/ipc_sender.h"
namespace IPC {
+class Sender;
+
// This class is an implementation of AttachmentBroker for the Windows platform.
class IPC_EXPORT AttachmentBrokerWin : public IPC::AttachmentBroker {
public:
@@ -23,10 +24,20 @@ class IPC_EXPORT AttachmentBrokerWin : public IPC::AttachmentBroker {
void OnReceiveDuplicatedHandle(HANDLE, BrokerableAttachment::AttachmentId id);
// IPC::AttachmentBroker overrides.
- void SendAttachmentToProcess(BrokerableAttachment* attachment,
+ bool SendAttachmentToProcess(const BrokerableAttachment* attachment,
base::ProcessId destination_process) override;
bool GetAttachmentWithId(BrokerableAttachment::AttachmentId id,
BrokerableAttachment* attachment) override;
+
+ // |sender_| is used to send Messages to the broker. |sender_| must live at
+ // least as long as this instance.
+ void set_sender(IPC::Sender* sender) { sender_ = sender; }
+
+ private:
+ // |sender_| is used to send Messages to the broker. |sender_| must live at
+ // least as long as this instance.
+ IPC::Sender* sender_;
+ DISALLOW_COPY_AND_ASSIGN(AttachmentBrokerWin);
};
} // namespace IPC

Powered by Google App Engine
This is Rietveld 408576698