| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ipc/attachment_broker_privileged_mac.h" | 5 #include "ipc/attachment_broker_privileged_mac.h" |
| 6 | 6 |
| 7 #include <stdint.h> |
| 8 |
| 7 #include "base/mac/scoped_mach_port.h" | 9 #include "base/mac/scoped_mach_port.h" |
| 8 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
| 9 #include "base/process/port_provider_mac.h" | 11 #include "base/process/port_provider_mac.h" |
| 10 #include "base/process/process.h" | 12 #include "base/process/process.h" |
| 11 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
| 12 #include "ipc/attachment_broker_messages.h" | 14 #include "ipc/attachment_broker_messages.h" |
| 13 #include "ipc/brokerable_attachment.h" | 15 #include "ipc/brokerable_attachment.h" |
| 14 #include "ipc/ipc_channel.h" | 16 #include "ipc/ipc_channel.h" |
| 15 #include "ipc/mach_port_attachment_mac.h" | 17 #include "ipc/mach_port_attachment_mac.h" |
| 16 | 18 |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 | 442 |
| 441 auto it = extractors_.find(source_pid); | 443 auto it = extractors_.find(source_pid); |
| 442 if (it == extractors_.end()) | 444 if (it == extractors_.end()) |
| 443 extractors_[source_pid] = new ScopedVector<AttachmentExtractor>; | 445 extractors_[source_pid] = new ScopedVector<AttachmentExtractor>; |
| 444 | 446 |
| 445 extractors_[source_pid]->push_back( | 447 extractors_[source_pid]->push_back( |
| 446 new AttachmentExtractor(source_pid, dest_pid, port, id)); | 448 new AttachmentExtractor(source_pid, dest_pid, port, id)); |
| 447 } | 449 } |
| 448 | 450 |
| 449 } // namespace IPC | 451 } // namespace IPC |
| OLD | NEW |