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_MACH_MESSAGE_SERVER_H_ | 5 #ifndef SANDBOX_MAC_MACH_MESSAGE_SERVER_H_ |
6 #define SANDBOX_MAC_MACH_MESSAGE_SERVER_H_ | 6 #define SANDBOX_MAC_MACH_MESSAGE_SERVER_H_ |
7 | 7 |
8 #include <mach/mach.h> | 8 #include <mach/mach.h> |
9 #include <stddef.h> | |
10 | 9 |
11 #include "base/mac/dispatch_source_mach.h" | 10 #include "base/mac/dispatch_source_mach.h" |
12 #include "base/mac/scoped_mach_port.h" | 11 #include "base/mac/scoped_mach_port.h" |
13 #include "base/mac/scoped_mach_vm.h" | 12 #include "base/mac/scoped_mach_vm.h" |
14 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
15 #include "sandbox/mac/message_server.h" | 14 #include "sandbox/mac/message_server.h" |
16 | 15 |
17 namespace sandbox { | 16 namespace sandbox { |
18 | 17 |
19 // A Mach message server that operates a receive port. Messages are received | 18 // A Mach message server that operates a receive port. Messages are received |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 // MACH_RECV dispatch source that handles the |server_port_|. | 63 // MACH_RECV dispatch source that handles the |server_port_|. |
65 scoped_ptr<base::DispatchSourceMach> dispatch_source_; | 64 scoped_ptr<base::DispatchSourceMach> dispatch_source_; |
66 | 65 |
67 // Whether or not ForwardMessage() was called during ReceiveMessage(). | 66 // Whether or not ForwardMessage() was called during ReceiveMessage(). |
68 bool did_forward_message_; | 67 bool did_forward_message_; |
69 }; | 68 }; |
70 | 69 |
71 } // namespace sandbox | 70 } // namespace sandbox |
72 | 71 |
73 #endif // SANDBOX_MAC_MACH_MESSAGE_SERVER_H_ | 72 #endif // SANDBOX_MAC_MACH_MESSAGE_SERVER_H_ |
OLD | NEW |