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

Side by Side Diff: chromeos/dbus/shill_device_client.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, 3 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_SHILL_DEVICE_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_SHILL_DEVICE_CLIENT_H_
6 #define CHROMEOS_DBUS_SHILL_DEVICE_CLIENT_H_ 6 #define CHROMEOS_DBUS_SHILL_DEVICE_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // Calls ProposeScan method. 71 // Calls ProposeScan method.
72 // |callback| is called after the method call finishes. 72 // |callback| is called after the method call finishes.
73 virtual void ProposeScan(const dbus::ObjectPath& device_path, 73 virtual void ProposeScan(const dbus::ObjectPath& device_path,
74 const VoidDBusMethodCallback& callback) = 0; 74 const VoidDBusMethodCallback& callback) = 0;
75 75
76 // Calls SetProperty method. 76 // Calls SetProperty method.
77 // |callback| is called after the method call finishes. 77 // |callback| is called after the method call finishes.
78 virtual void SetProperty(const dbus::ObjectPath& device_path, 78 virtual void SetProperty(const dbus::ObjectPath& device_path,
79 const std::string& name, 79 const std::string& name,
80 const base::Value& value, 80 const base::Value& value,
81 const VoidDBusMethodCallback& callback) = 0; 81 const base::Closure& callback,
82 const ErrorCallback& error_callback) = 0;
82 83
83 // Calls ClearProperty method. 84 // Calls ClearProperty method.
84 // |callback| is called after the method call finishes. 85 // |callback| is called after the method call finishes.
85 virtual void ClearProperty(const dbus::ObjectPath& device_path, 86 virtual void ClearProperty(const dbus::ObjectPath& device_path,
86 const std::string& name, 87 const std::string& name,
87 const VoidDBusMethodCallback& callback) = 0; 88 const VoidDBusMethodCallback& callback) = 0;
88 89
89 // Calls AddIPConfig method. 90 // Calls AddIPConfig method.
90 // |callback| is called after the method call finishes. 91 // |callback| is called after the method call finishes.
91 virtual void AddIPConfig(const dbus::ObjectPath& device_path, 92 virtual void AddIPConfig(const dbus::ObjectPath& device_path,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // Create() should be used instead. 152 // Create() should be used instead.
152 ShillDeviceClient(); 153 ShillDeviceClient();
153 154
154 private: 155 private:
155 DISALLOW_COPY_AND_ASSIGN(ShillDeviceClient); 156 DISALLOW_COPY_AND_ASSIGN(ShillDeviceClient);
156 }; 157 };
157 158
158 } // namespace chromeos 159 } // namespace chromeos
159 160
160 #endif // CHROMEOS_DBUS_SHILL_DEVICE_CLIENT_H_ 161 #endif // CHROMEOS_DBUS_SHILL_DEVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698