| 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 19 matching lines...) Expand all Loading... |
| 30 bool result)> BoolDBusMethodCallback; | 30 bool result)> BoolDBusMethodCallback; |
| 31 | 31 |
| 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)> ObjectPathCallback; |
| 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; |
| 41 | 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 |