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

Side by Side Diff: ipc/attachment_broker_privileged_mac.h

Issue 1405253010: ipc: Add a lock to guard modifications of state of the AttachmentBroker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « ipc/attachment_broker_privileged.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PRIVILEGED_MAC_H_ 5 #ifndef IPC_ATTACHMENT_BROKER_PRIVILEGED_MAC_H_
6 #define IPC_ATTACHMENT_BROKER_PRIVILEGED_MAC_H_ 6 #define IPC_ATTACHMENT_BROKER_PRIVILEGED_MAC_H_
7 7
8 #include <mach/mach.h> 8 #include <mach/mach.h>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // Makes an attachment, queues it, and notifies the observers. 116 // Makes an attachment, queues it, and notifies the observers.
117 void RouteWireFormatToSelf(const MachPortWireFormat& wire_format); 117 void RouteWireFormatToSelf(const MachPortWireFormat& wire_format);
118 118
119 // |wire_format.destination_process| must be another process. 119 // |wire_format.destination_process| must be another process.
120 // |wire_format.mach_port| must be the intermediate Mach port. 120 // |wire_format.mach_port| must be the intermediate Mach port.
121 // Ownership of |wire_format.mach_port| is implicitly passed to the process 121 // Ownership of |wire_format.mach_port| is implicitly passed to the process
122 // that receives the Chrome IPC message. 122 // that receives the Chrome IPC message.
123 void RouteWireFormatToAnother(const MachPortWireFormat& wire_format); 123 void RouteWireFormatToAnother(const MachPortWireFormat& wire_format);
124 124
125 // The port provider must live at least as long as the AttachmentBroker. 125 // The port provider must live at least as long as the AttachmentBroker.
126 base::PortProvider* port_provider_; 126 const base::PortProvider* port_provider_;
127 127
128 DISALLOW_COPY_AND_ASSIGN(AttachmentBrokerPrivilegedMac); 128 DISALLOW_COPY_AND_ASSIGN(AttachmentBrokerPrivilegedMac);
129 }; 129 };
130 130
131 } // namespace IPC 131 } // namespace IPC
132 132
133 #endif // IPC_ATTACHMENT_BROKER_PRIVILEGED_MAC_H_ 133 #endif // IPC_ATTACHMENT_BROKER_PRIVILEGED_MAC_H_
OLDNEW
« no previous file with comments | « ipc/attachment_broker_privileged.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698