OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 SANDBOX_MAC_XPC_MESSAGE_SERVER_H_ | 5 #ifndef SANDBOX_MAC_XPC_MESSAGE_SERVER_H_ |
6 #define SANDBOX_MAC_XPC_MESSAGE_SERVER_H_ | 6 #define SANDBOX_MAC_XPC_MESSAGE_SERVER_H_ |
7 | 7 |
8 #include <AvailabilityMacros.h> | 8 #include <AvailabilityMacros.h> |
9 | 9 |
10 #include "base/mac/dispatch_source_mach.h" | 10 #include "base/mac/dispatch_source_mach.h" |
11 #include "base/mac/scoped_mach_port.h" | 11 #include "base/mac/scoped_mach_port.h" |
12 #include "base/macros.h" | |
13 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
14 #include "sandbox/mac/message_server.h" | 13 #include "sandbox/mac/message_server.h" |
15 #include "sandbox/mac/xpc.h" | 14 #include "sandbox/mac/xpc.h" |
16 #include "sandbox/sandbox_export.h" | 15 #include "sandbox/sandbox_export.h" |
17 | 16 |
18 namespace sandbox { | 17 namespace sandbox { |
19 | 18 |
20 // An implementation of MessageServer that uses XPC pipes to read and write XPC | 19 // An implementation of MessageServer that uses XPC pipes to read and write XPC |
21 // messages from a Mach port. | 20 // messages from a Mach port. |
22 class SANDBOX_EXPORT XPCMessageServer : public MessageServer { | 21 class SANDBOX_EXPORT XPCMessageServer : public MessageServer { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 53 |
55 // The reply message, if one has been created. | 54 // The reply message, if one has been created. |
56 xpc_object_t reply_message_; | 55 xpc_object_t reply_message_; |
57 | 56 |
58 DISALLOW_COPY_AND_ASSIGN(XPCMessageServer); | 57 DISALLOW_COPY_AND_ASSIGN(XPCMessageServer); |
59 }; | 58 }; |
60 | 59 |
61 } // namespace sandbox | 60 } // namespace sandbox |
62 | 61 |
63 #endif // SANDBOX_MAC_XPC_MESSAGE_SERVER_H_ | 62 #endif // SANDBOX_MAC_XPC_MESSAGE_SERVER_H_ |
OLD | NEW |