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_MOJO_ASYNC_HANDLE_WAITER_H_ | 5 #ifndef IPC_MOJO_ASYNC_HANDLE_WAITER_H_ |
6 #define IPC_MOJO_ASYNC_HANDLE_WAITER_H_ | 6 #define IPC_MOJO_ASYNC_HANDLE_WAITER_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
10 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
11 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
12 #include "ipc/ipc_export.h" | 13 #include "ipc/ipc_export.h" |
13 #include "mojo/public/c/system/types.h" | 14 #include "mojo/public/c/system/types.h" |
14 | 15 |
15 namespace IPC { | 16 namespace IPC { |
16 namespace internal { | 17 namespace internal { |
17 | 18 |
18 // |AsyncHandleWaiter| waits on a mojo handle asynchronously and | 19 // |AsyncHandleWaiter| waits on a mojo handle asynchronously and |
(...skipping 24 matching lines...) Expand all Loading... |
43 base::Callback<void(MojoResult)> callback_; | 44 base::Callback<void(MojoResult)> callback_; |
44 base::WeakPtrFactory<AsyncHandleWaiter> weak_factory_; | 45 base::WeakPtrFactory<AsyncHandleWaiter> weak_factory_; |
45 | 46 |
46 DISALLOW_COPY_AND_ASSIGN(AsyncHandleWaiter); | 47 DISALLOW_COPY_AND_ASSIGN(AsyncHandleWaiter); |
47 }; | 48 }; |
48 | 49 |
49 } // namespace internal | 50 } // namespace internal |
50 } // namespace IPC | 51 } // namespace IPC |
51 | 52 |
52 #endif // IPC_MOJO_ASYNC_HANDLE_WAITER_H_ | 53 #endif // IPC_MOJO_ASYNC_HANDLE_WAITER_H_ |
OLD | NEW |