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

Side by Side Diff: ipc/attachment_broker_unprivileged_mac.h

Issue 1385143002: ipc: Update MachPortMac ownership semantics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix rebase errors. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IPC_ATTACHMENT_BROKER_UNPRIVILEGED_MAC_H_ 5 #ifndef IPC_ATTACHMENT_BROKER_UNPRIVILEGED_MAC_H_
6 #define IPC_ATTACHMENT_BROKER_UNPRIVILEGED_MAC_H_ 6 #define IPC_ATTACHMENT_BROKER_UNPRIVILEGED_MAC_H_
7 7
8 #include "ipc/attachment_broker_unprivileged.h" 8 #include "ipc/attachment_broker_unprivileged.h"
9 #include "ipc/ipc_export.h" 9 #include "ipc/ipc_export.h"
10 #include "ipc/mach_port_attachment_mac.h" 10 #include "ipc/mach_port_attachment_mac.h"
11 11
12 namespace IPC { 12 namespace IPC {
13 13
14 class BrokerableAttachment; 14 class BrokerableAttachment;
15 15
16 // This class is an implementation of AttachmentBroker for the OSX platform 16 // This class is an implementation of AttachmentBroker for the OSX platform
17 // for non-privileged processes. 17 // for non-privileged processes.
18 class IPC_EXPORT AttachmentBrokerUnprivilegedMac 18 class IPC_EXPORT AttachmentBrokerUnprivilegedMac
19 : public IPC::AttachmentBrokerUnprivileged { 19 : public IPC::AttachmentBrokerUnprivileged {
20 public: 20 public:
21 AttachmentBrokerUnprivilegedMac(); 21 AttachmentBrokerUnprivilegedMac();
22 ~AttachmentBrokerUnprivilegedMac() override; 22 ~AttachmentBrokerUnprivilegedMac() override;
23 23
24 // IPC::AttachmentBroker overrides. 24 // IPC::AttachmentBroker overrides.
25 bool SendAttachmentToProcess(const BrokerableAttachment* attachment, 25 bool SendAttachmentToProcess(BrokerableAttachment* attachment,
26 base::ProcessId destination_process) override; 26 base::ProcessId destination_process) override;
27 27
28 // IPC::Listener overrides. 28 // IPC::Listener overrides.
29 bool OnMessageReceived(const Message& message) override; 29 bool OnMessageReceived(const Message& message) override;
30 30
31 private: 31 private:
32 // IPC message handlers. 32 // IPC message handlers.
33 void OnMachPortHasBeenDuplicated( 33 void OnMachPortHasBeenDuplicated(
34 const IPC::internal::MachPortAttachmentMac::WireFormat& wire_format); 34 const IPC::internal::MachPortAttachmentMac::WireFormat& wire_format);
35 35
36 DISALLOW_COPY_AND_ASSIGN(AttachmentBrokerUnprivilegedMac); 36 DISALLOW_COPY_AND_ASSIGN(AttachmentBrokerUnprivilegedMac);
37 }; 37 };
38 38
39 } // namespace IPC 39 } // namespace IPC
40 40
41 #endif // IPC_ATTACHMENT_BROKER_UNPRIVILEGED_MAC_H_ 41 #endif // IPC_ATTACHMENT_BROKER_UNPRIVILEGED_MAC_H_
OLDNEW
« no previous file with comments | « ipc/attachment_broker_privileged_win_unittest.cc ('k') | ipc/attachment_broker_unprivileged_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698