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