| 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_SHILL_CLIENT_HELPER_H_ |    5 #ifndef CHROMEOS_DBUS_SHILL_CLIENT_HELPER_H_ | 
|    6 #define CHROMEOS_DBUS_SHILL_CLIENT_HELPER_H_ |    6 #define CHROMEOS_DBUS_SHILL_CLIENT_HELPER_H_ | 
|    7  |    7  | 
|    8 #include <string> |    8 #include <string> | 
|    9  |    9  | 
|   10 #include "base/basictypes.h" |   10 #include "base/basictypes.h" | 
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  106  |  106  | 
|  107   // Calls a method with a boolean array result with error callback. |  107   // Calls a method with a boolean array result with error callback. | 
|  108   void CallListValueMethodWithErrorCallback( |  108   void CallListValueMethodWithErrorCallback( | 
|  109       dbus::MethodCall* method_call, |  109       dbus::MethodCall* method_call, | 
|  110       const ListValueCallback& callback, |  110       const ListValueCallback& callback, | 
|  111       const ErrorCallback& error_callback); |  111       const ErrorCallback& error_callback); | 
|  112  |  112  | 
|  113   // DEPRECATED DO NOT USE: Calls a method without results. |  113   // DEPRECATED DO NOT USE: Calls a method without results. | 
|  114   bool CallVoidMethodAndBlock(dbus::MethodCall* method_call); |  114   bool CallVoidMethodAndBlock(dbus::MethodCall* method_call); | 
|  115  |  115  | 
|  116   // DEPRECATED DO NOT USE: Calls a method with an object path result. |  | 
|  117   dbus::ObjectPath CallObjectPathMethodAndBlock(dbus::MethodCall* method_call); |  | 
|  118  |  | 
|  119   // DEPRECATED DO NOT USE: Calls a method with a dictionary value result. |  116   // DEPRECATED DO NOT USE: Calls a method with a dictionary value result. | 
|  120   // The caller is responsible to delete the result. |  117   // The caller is responsible to delete the result. | 
|  121   // This method returns NULL when method call fails. |  118   // This method returns NULL when method call fails. | 
|  122   base::DictionaryValue* CallDictionaryValueMethodAndBlock( |  119   base::DictionaryValue* CallDictionaryValueMethodAndBlock( | 
|  123       dbus::MethodCall* method_call); |  120       dbus::MethodCall* method_call); | 
|  124  |  121  | 
|  125   // Appends the value (basic types and string-to-string dictionary) to the |  122   // Appends the value (basic types and string-to-string dictionary) to the | 
|  126   // writer as a variant. |  123   // writer as a variant. | 
|  127   static void AppendValueDataAsVariant(dbus::MessageWriter* writer, |  124   static void AppendValueDataAsVariant(dbus::MessageWriter* writer, | 
|  128                                        const base::Value& value); |  125                                        const base::Value& value); | 
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  186   // Note: This should remain the last member so it'll be destroyed and |  183   // Note: This should remain the last member so it'll be destroyed and | 
|  187   // invalidate its weak pointers before any other members are destroyed. |  184   // invalidate its weak pointers before any other members are destroyed. | 
|  188   base::WeakPtrFactory<ShillClientHelper> weak_ptr_factory_; |  185   base::WeakPtrFactory<ShillClientHelper> weak_ptr_factory_; | 
|  189  |  186  | 
|  190   DISALLOW_COPY_AND_ASSIGN(ShillClientHelper); |  187   DISALLOW_COPY_AND_ASSIGN(ShillClientHelper); | 
|  191 }; |  188 }; | 
|  192  |  189  | 
|  193 }  // namespace chromeos |  190 }  // namespace chromeos | 
|  194  |  191  | 
|  195 #endif  // CHROMEOS_DBUS_SHILL_CLIENT_HELPER_H_ |  192 #endif  // CHROMEOS_DBUS_SHILL_CLIENT_HELPER_H_ | 
| OLD | NEW |