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

Unified Diff: ipc/attachment_broker_unprivileged_win.h

Issue 1256993003: ipc: Create AttachmentBrokerPrivileged and AttachmentBrokerUnprivileged. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add_ipc_message_feature
Patch Set: Rebase. Created 5 years, 5 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_unprivileged_win.h
diff --git a/ipc/attachment_broker_win.h b/ipc/attachment_broker_unprivileged_win.h
similarity index 52%
rename from ipc/attachment_broker_win.h
rename to ipc/attachment_broker_unprivileged_win.h
index dc6f8f770248aa6d0a84c2c88f24c835307b340f..c3d290927410728fbfb3d300dd10abc59c52e5cf 100644
--- a/ipc/attachment_broker_win.h
+++ b/ipc/attachment_broker_unprivileged_win.h
@@ -2,27 +2,24 @@
// 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_
+#ifndef IPC_ATTACHMENT_BROKER_UNPRIVILEGED_WIN_H_
+#define IPC_ATTACHMENT_BROKER_UNPRIVILEGED_WIN_H_
-#include <vector>
-
-#include "base/memory/ref_counted.h"
-#include "ipc/attachment_broker.h"
-#include "ipc/brokerable_attachment.h"
+#include "ipc/attachment_broker_unprivileged.h"
#include "ipc/handle_attachment_win.h"
#include "ipc/ipc_export.h"
namespace IPC {
-class Sender;
+class BrokerableAttachment;
// This class is an implementation of AttachmentBroker for the Windows platform
// for non-privileged processes.
-class IPC_EXPORT AttachmentBrokerWin : public IPC::AttachmentBroker {
+class IPC_EXPORT AttachmentBrokerUnprivilegedWin
+ : public IPC::AttachmentBrokerUnprivileged {
public:
- AttachmentBrokerWin();
- ~AttachmentBrokerWin() override;
+ AttachmentBrokerUnprivilegedWin();
+ ~AttachmentBrokerUnprivilegedWin() override;
// IPC::AttachmentBroker overrides.
bool SendAttachmentToProcess(const BrokerableAttachment* attachment,
@@ -31,21 +28,14 @@ class IPC_EXPORT AttachmentBrokerWin : public IPC::AttachmentBroker {
// IPC::Listener overrides.
bool OnMessageReceived(const Message& message) 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:
// IPC message handlers.
void OnWinHandleHasBeenDuplicated(
const IPC::internal::HandleAttachmentWin::WireFormat& wire_format);
- // |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);
+ DISALLOW_COPY_AND_ASSIGN(AttachmentBrokerUnprivilegedWin);
};
} // namespace IPC
-#endif // IPC_ATTACHMENT_BROKER_WIN_H_
+#endif // IPC_ATTACHMENT_BROKER_UNPRIVILEGED_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698