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