OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROMEOS_DBUS_BLOCKING_METHOD_CALLER_H_ | 5 #ifndef CHROMEOS_DBUS_BLOCKING_METHOD_CALLER_H_ |
6 #define CHROMEOS_DBUS_BLOCKING_METHOD_CALLER_H_ | 6 #define CHROMEOS_DBUS_BLOCKING_METHOD_CALLER_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/macros.h" |
9 #include "base/synchronization/waitable_event.h" | 10 #include "base/synchronization/waitable_event.h" |
10 #include "chromeos/chromeos_export.h" | 11 #include "chromeos/chromeos_export.h" |
11 #include "dbus/message.h" | 12 #include "dbus/message.h" |
12 | 13 |
13 namespace dbus { | 14 namespace dbus { |
14 | 15 |
15 class Bus; | 16 class Bus; |
16 class ObjectProxy; | 17 class ObjectProxy; |
17 | 18 |
18 } // namespace dbus | 19 } // namespace dbus |
(...skipping 15 matching lines...) Expand all Loading... |
34 dbus::Bus* bus_; | 35 dbus::Bus* bus_; |
35 dbus::ObjectProxy* proxy_; | 36 dbus::ObjectProxy* proxy_; |
36 base::WaitableEvent on_blocking_method_call_; | 37 base::WaitableEvent on_blocking_method_call_; |
37 | 38 |
38 DISALLOW_COPY_AND_ASSIGN(BlockingMethodCaller); | 39 DISALLOW_COPY_AND_ASSIGN(BlockingMethodCaller); |
39 }; | 40 }; |
40 | 41 |
41 } // namespace chromeos | 42 } // namespace chromeos |
42 | 43 |
43 #endif // CHROMEOS_DBUS_BLOCKING_METHOD_CALLER_H_ | 44 #endif // CHROMEOS_DBUS_BLOCKING_METHOD_CALLER_H_ |
OLD | NEW |