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