| 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_FLIMFLAM_CLIENT_HELPER_H_ | 5 #ifndef CHROMEOS_DBUS_FLIMFLAM_CLIENT_HELPER_H_ |
| 6 #define CHROMEOS_DBUS_FLIMFLAM_CLIENT_HELPER_H_ | 6 #define CHROMEOS_DBUS_FLIMFLAM_CLIENT_HELPER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 const VoidCallback& callback); | 72 const VoidCallback& callback); |
| 73 | 73 |
| 74 // Calls a method with an object path result. | 74 // Calls a method with an object path result. |
| 75 void CallObjectPathMethod(dbus::MethodCall* method_call, | 75 void CallObjectPathMethod(dbus::MethodCall* method_call, |
| 76 const ObjectPathCallback& callback); | 76 const ObjectPathCallback& callback); |
| 77 | 77 |
| 78 // Calls a method with a dictionary value result. | 78 // Calls a method with a dictionary value result. |
| 79 void CallDictionaryValueMethod(dbus::MethodCall* method_call, | 79 void CallDictionaryValueMethod(dbus::MethodCall* method_call, |
| 80 const DictionaryValueCallback& callback); | 80 const DictionaryValueCallback& callback); |
| 81 | 81 |
| 82 // DEPRECATED DO NOT USE: Calls a method with an object path result. |
| 83 dbus::ObjectPath CallObjectPathMethodAndBlock(dbus::MethodCall* method_call); |
| 84 |
| 82 // DEPRECATED DO NOT USE: Calls a method with a dictionary value result. | 85 // DEPRECATED DO NOT USE: Calls a method with a dictionary value result. |
| 83 // The caller is responsible to delete the result. | 86 // The caller is responsible to delete the result. |
| 84 // This method returns NULL when method call fails. | 87 // This method returns NULL when method call fails. |
| 85 base::DictionaryValue* CallDictionaryValueMethodAndBlock( | 88 base::DictionaryValue* CallDictionaryValueMethodAndBlock( |
| 86 dbus::MethodCall* method_call); | 89 dbus::MethodCall* method_call); |
| 87 | 90 |
| 88 // Appends the value (basic types and string-to-string dictionary) to the | 91 // Appends the value (basic types and string-to-string dictionary) to the |
| 89 // writer as a variant. | 92 // writer as a variant. |
| 90 static void AppendValueDataAsVariant(dbus::MessageWriter* writer, | 93 static void AppendValueDataAsVariant(dbus::MessageWriter* writer, |
| 91 const base::Value& value); | 94 const base::Value& value); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 115 BlockingMethodCaller blocking_method_caller_; | 118 BlockingMethodCaller blocking_method_caller_; |
| 116 dbus::ObjectProxy* proxy_; | 119 dbus::ObjectProxy* proxy_; |
| 117 PropertyChangedHandler property_changed_handler_; | 120 PropertyChangedHandler property_changed_handler_; |
| 118 | 121 |
| 119 DISALLOW_COPY_AND_ASSIGN(FlimflamClientHelper); | 122 DISALLOW_COPY_AND_ASSIGN(FlimflamClientHelper); |
| 120 }; | 123 }; |
| 121 | 124 |
| 122 } // namespace chromeos | 125 } // namespace chromeos |
| 123 | 126 |
| 124 #endif // CHROMEOS_DBUS_FLIMFLAM_CLIENT_HELPER_H_ | 127 #endif // CHROMEOS_DBUS_FLIMFLAM_CLIENT_HELPER_H_ |
| OLD | NEW |