Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: chromeos/dbus/blocking_method_caller.h

Issue 2726523002: Pass Callback to TaskRunner by value and consume it on invocation (1) (Closed)
Patch Set: erase Closure* Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
9 #include "base/macros.h" 8 #include "base/macros.h"
10 #include "base/synchronization/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
11 #include "chromeos/chromeos_export.h" 10 #include "chromeos/chromeos_export.h"
12 #include "dbus/message.h" 11 #include "dbus/message.h"
13 12
14 namespace dbus { 13 namespace dbus {
15 14
16 class Bus; 15 class Bus;
17 class ObjectProxy; 16 class ObjectProxy;
18 17
(...skipping 17 matching lines...) Expand all
36 dbus::Bus* bus_; 35 dbus::Bus* bus_;
37 dbus::ObjectProxy* proxy_; 36 dbus::ObjectProxy* proxy_;
38 base::WaitableEvent on_blocking_method_call_; 37 base::WaitableEvent on_blocking_method_call_;
39 38
40 DISALLOW_COPY_AND_ASSIGN(BlockingMethodCaller); 39 DISALLOW_COPY_AND_ASSIGN(BlockingMethodCaller);
41 }; 40 };
42 41
43 } // namespace chromeos 42 } // namespace chromeos
44 43
45 #endif // CHROMEOS_DBUS_BLOCKING_METHOD_CALLER_H_ 44 #endif // CHROMEOS_DBUS_BLOCKING_METHOD_CALLER_H_
OLDNEW
« no previous file with comments | « chromecast/base/system_time_change_notifier_unittest.cc ('k') | chromeos/dbus/blocking_method_caller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698