| 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 #include "sandbox/mac/mach_message_server.h" | 5 #include "sandbox/mac/mach_message_server.h" |
| 6 | 6 |
| 7 #include <bsm/libbsm.h> | 7 #include <bsm/libbsm.h> |
| 8 #include <servers/bootstrap.h> | 8 #include <servers/bootstrap.h> |
| 9 #include <stddef.h> | |
| 10 | 9 |
| 11 #include <string> | 10 #include <string> |
| 12 | 11 |
| 13 #include "base/logging.h" | 12 #include "base/logging.h" |
| 14 #include "base/mac/mach_logging.h" | 13 #include "base/mac/mach_logging.h" |
| 15 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
| 16 | 15 |
| 17 namespace sandbox { | 16 namespace sandbox { |
| 18 | 17 |
| 19 MachMessageServer::MachMessageServer( | 18 MachMessageServer::MachMessageServer( |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 // forwarded message was sent from the process hosting this sandbox server, | 183 // forwarded message was sent from the process hosting this sandbox server, |
| 185 // destroying the message could also destroy rights held outside the scope of | 184 // destroying the message could also destroy rights held outside the scope of |
| 186 // this message server. | 185 // this message server. |
| 187 if (!did_forward_message_) { | 186 if (!did_forward_message_) { |
| 188 mach_msg_destroy(request); | 187 mach_msg_destroy(request); |
| 189 mach_msg_destroy(reply); | 188 mach_msg_destroy(reply); |
| 190 } | 189 } |
| 191 } | 190 } |
| 192 | 191 |
| 193 } // namespace sandbox | 192 } // namespace sandbox |
| OLD | NEW |