Chromium Code Reviews| 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_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 Loading... | |
| 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_ |
| OLD | NEW |