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

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

Issue 10949030: This converts the Shill clients to allow propagation of shill errors (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Review changes Created 8 years, 2 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_DBUS_METHOD_CALL_STATUS_H_ 5 #ifndef CHROMEOS_DBUS_DBUS_METHOD_CALL_STATUS_H_
6 #define CHROMEOS_DBUS_DBUS_METHOD_CALL_STATUS_H_ 6 #define CHROMEOS_DBUS_DBUS_METHOD_CALL_STATUS_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 9
10 namespace dbus { 10 namespace dbus {
(...skipping 21 matching lines...) Expand all
32 // A callback to handle responses of methods returning a string value. 32 // A callback to handle responses of methods returning a string value.
33 typedef base::Callback<void( 33 typedef base::Callback<void(
34 DBusMethodCallStatus call_status, 34 DBusMethodCallStatus call_status,
35 const std::string& result)> StringDBusMethodCallback; 35 const std::string& result)> StringDBusMethodCallback;
36 36
37 // A callback to handle responses of methods returning a ObjectPath value. 37 // A callback to handle responses of methods returning a ObjectPath value.
38 typedef base::Callback<void( 38 typedef base::Callback<void(
39 DBusMethodCallStatus call_status, 39 DBusMethodCallStatus call_status,
40 const dbus::ObjectPath& result)> ObjectPathDBusMethodCallback; 40 const dbus::ObjectPath& result)> ObjectPathDBusMethodCallback;
41 41
42 // A callback to handle responses of methods returning a ObjectPath value that
43 // doens't get call status.
44 typedef base::Callback<void(
45 const dbus::ObjectPath& result)> ObjectPathCallbackWithoutStatus;
hashimoto 2012/09/24 02:28:56 Just 'ObjectPathCallback'? ShillClientHelper::Dict
Greg Spencer (Chromium) 2012/09/24 21:50:54 OK, or should I rename ObjectPathDBusMethodCallbac
hashimoto 2012/09/25 08:08:19 I think we should keep the old one's name unchange
Greg Spencer (Chromium) 2012/09/25 18:40:08 OK, I kept the original one and renamed the new on
46
42 } // namespace chromeos 47 } // namespace chromeos
43 48
44 #endif // CHROMEOS_DBUS_DBUS_METHOD_CALL_STATUS_H_ 49 #endif // CHROMEOS_DBUS_DBUS_METHOD_CALL_STATUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698