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

Unified Diff: ipc/attachment_broker_privileged_mac.h

Issue 1414603003: ipc: Move AttachmentBrokerPrivileged singleton logic into ipc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor formatting. Created 5 years, 2 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_privileged.cc ('k') | ipc/attachment_broker_privileged_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/attachment_broker_privileged_mac.h
diff --git a/ipc/attachment_broker_privileged_mac.h b/ipc/attachment_broker_privileged_mac.h
index c6776f64e1c07fa70a740792ac8a77a685faa33d..329a376a9c769c24882c34881e0159bc3c70b354 100644
--- a/ipc/attachment_broker_privileged_mac.h
+++ b/ipc/attachment_broker_privileged_mac.h
@@ -14,6 +14,10 @@
#include "ipc/ipc_export.h"
#include "ipc/mach_port_attachment_mac.h"
+namespace base {
+class PortProvider;
+} // namespace base
+
namespace IPC {
// This class is a concrete subclass of AttachmentBrokerPrivileged for the
@@ -47,7 +51,7 @@ namespace IPC {
class IPC_EXPORT AttachmentBrokerPrivilegedMac
: public AttachmentBrokerPrivileged {
public:
- AttachmentBrokerPrivilegedMac();
+ explicit AttachmentBrokerPrivilegedMac(base::PortProvider* port_provider);
~AttachmentBrokerPrivilegedMac() override;
// IPC::AttachmentBroker overrides.
@@ -118,6 +122,9 @@ class IPC_EXPORT AttachmentBrokerPrivilegedMac
// that receives the Chrome IPC message.
void RouteWireFormatToAnother(const MachPortWireFormat& wire_format);
+ // The port provider must live at least as long as the AttachmentBroker.
+ base::PortProvider* port_provider_;
+
DISALLOW_COPY_AND_ASSIGN(AttachmentBrokerPrivilegedMac);
};
« no previous file with comments | « ipc/attachment_broker_privileged.cc ('k') | ipc/attachment_broker_privileged_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698