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 #ifndef IPC_ATTACHMENT_BROKER_H_ | 5 #ifndef IPC_ATTACHMENT_BROKER_H_ |
6 #define IPC_ATTACHMENT_BROKER_H_ | 6 #define IPC_ATTACHMENT_BROKER_H_ |
7 | 7 |
8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/process/process_handle.h" | 11 #include "base/process/process_handle.h" |
| 12 #include "base/single_thread_task_runner.h" |
12 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
13 #include "build/build_config.h" | 14 #include "build/build_config.h" |
14 #include "ipc/brokerable_attachment.h" | 15 #include "ipc/brokerable_attachment.h" |
15 #include "ipc/ipc_export.h" | 16 #include "ipc/ipc_export.h" |
16 #include "ipc/ipc_listener.h" | 17 #include "ipc/ipc_listener.h" |
17 | 18 |
18 // If the platform has no attachments that need brokering, then it shouldn't | 19 // If the platform has no attachments that need brokering, then it shouldn't |
19 // compile any code that calls member functions of AttachmentBroker. This | 20 // compile any code that calls member functions of AttachmentBroker. This |
20 // prevents symbols only used by AttachmentBroker and its subclasses from | 21 // prevents symbols only used by AttachmentBroker and its subclasses from |
21 // making it into the binary. | 22 // making it into the binary. |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 168 |
168 // The AttachmentBroker can be accessed from any thread, so modifications to | 169 // The AttachmentBroker can be accessed from any thread, so modifications to |
169 // internal state must be guarded by a lock. | 170 // internal state must be guarded by a lock. |
170 base::Lock lock_; | 171 base::Lock lock_; |
171 DISALLOW_COPY_AND_ASSIGN(AttachmentBroker); | 172 DISALLOW_COPY_AND_ASSIGN(AttachmentBroker); |
172 }; | 173 }; |
173 | 174 |
174 } // namespace IPC | 175 } // namespace IPC |
175 | 176 |
176 #endif // IPC_ATTACHMENT_BROKER_H_ | 177 #endif // IPC_ATTACHMENT_BROKER_H_ |
OLD | NEW |