OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "chrome/common/mach_ipc_mac.h" | 5 #include "base/mach_ipc_mac.h" |
6 | 6 |
7 #import <Foundation/Foundation.h> | 7 #import <Foundation/Foundation.h> |
8 | 8 |
9 #include <stdio.h> | 9 #include <stdio.h> |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 | 11 |
12 //============================================================================== | 12 //============================================================================== |
13 MachSendMessage::MachSendMessage(int32_t message_id) : MachMessage() { | 13 MachSendMessage::MachSendMessage(int32_t message_id) : MachMessage() { |
14 Initialize(message_id); | 14 Initialize(message_id); |
15 } | 15 } |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 kern_return_t result = mach_msg(message.Head(), | 299 kern_return_t result = mach_msg(message.Head(), |
300 MACH_SEND_MSG | MACH_SEND_TIMEOUT, | 300 MACH_SEND_MSG | MACH_SEND_TIMEOUT, |
301 message.Head()->msgh_size, | 301 message.Head()->msgh_size, |
302 0, | 302 0, |
303 MACH_PORT_NULL, | 303 MACH_PORT_NULL, |
304 timeout, // timeout in ms | 304 timeout, // timeout in ms |
305 MACH_PORT_NULL); | 305 MACH_PORT_NULL); |
306 | 306 |
307 return result; | 307 return result; |
308 } | 308 } |
OLD | NEW |