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

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: 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/attachment_broker_win.h
diff --git a/ipc/attachment_broker_win.h b/ipc/attachment_broker_win.h
index d9b927c7be9bde48860aaef1c74907a05514063a..f0b81711b78790d6e217fd7e0f00bb203dd20a56 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(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 SetSender(IPC::Sender* sender);
Tom Sepez 2015/06/19 18:04:10 nit: |set_sender()| for this trivial method.
erikchen 2015/06/23 22:36:59 Done.
+
+ 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