diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-09 07:54:32 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-09 07:54:32 +0000 |
commit | 2191d2082e2bf1f937ec4592b4f8c185f04f3fd6 (patch) | |
tree | 72193cc3ae1951e91924353de58a1f2ed7c8af23 /chrome/common | |
parent | 04df4f1ea242136c0829b8d922c3aefdbb4ebd85 (diff) | |
download | chromium_src-2191d2082e2bf1f937ec4592b4f8c185f04f3fd6.zip chromium_src-2191d2082e2bf1f937ec4592b4f8c185f04f3fd6.tar.gz chromium_src-2191d2082e2bf1f937ec4592b4f8c185f04f3fd6.tar.bz2 |
A place to store the pid->mach_port_t mapping.
Not yet for review.
Landing to measure perf impact, will revert immediately.
BUG=13156
TEST=unittests
Review URL: http://codereview.chromium.org/460126
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34146 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/mach_ipc_mac.h | 5 | ||||
-rw-r--r-- | chrome/common/mach_ipc_mac.mm | 8 |
2 files changed, 7 insertions, 6 deletions
diff --git a/chrome/common/mach_ipc_mac.h b/chrome/common/mach_ipc_mac.h index 8c345dd..42b9c65 100644 --- a/chrome/common/mach_ipc_mac.h +++ b/chrome/common/mach_ipc_mac.h @@ -167,8 +167,9 @@ class MachMessage { bool AddDescriptor(const MachMsgPortDescriptor &desc); int GetDescriptorCount() const { - return storage_->body.msgh_descriptor_count; - } + return storage_->body.msgh_descriptor_count; + } + MachMsgPortDescriptor *GetDescriptor(int n); // Convenience method which gets the mach port described by the descriptor diff --git a/chrome/common/mach_ipc_mac.mm b/chrome/common/mach_ipc_mac.mm index 3c95ef6..7693d9a 100644 --- a/chrome/common/mach_ipc_mac.mm +++ b/chrome/common/mach_ipc_mac.mm @@ -213,10 +213,10 @@ ReceivePort::ReceivePort() { if (init_result_ != KERN_SUCCESS) return; - init_result_ = mach_port_insert_right(current_task, - port_, - port_, - MACH_MSG_TYPE_MAKE_SEND); + init_result_ = mach_port_insert_right(current_task, + port_, + port_, + MACH_MSG_TYPE_MAKE_SEND); } //============================================================================== |