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 #include "chrome/browser/chromeos/dbus/blocking_method_caller.h" | 5 #include "chromeos/dbus/blocking_method_caller.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "dbus/bus.h" | 8 #include "dbus/bus.h" |
9 #include "dbus/object_proxy.h" | 9 #include "dbus/object_proxy.h" |
10 | 10 |
11 namespace chromeos { | 11 namespace chromeos { |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 // A utility class to ensure the WaitableEvent is signaled. | 15 // A utility class to ensure the WaitableEvent is signaled. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 base::Bind(&CallMethodAndBlockInternal, | 58 base::Bind(&CallMethodAndBlockInternal, |
59 &response, | 59 &response, |
60 base::Owned(signaler), | 60 base::Owned(signaler), |
61 base::Unretained(proxy_), | 61 base::Unretained(proxy_), |
62 method_call)); | 62 method_call)); |
63 on_blocking_method_call_.Wait(); | 63 on_blocking_method_call_.Wait(); |
64 return response; | 64 return response; |
65 } | 65 } |
66 | 66 |
67 } // namespace chromeos | 67 } // namespace chromeos |
OLD | NEW |