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

Side by Side Diff: chromeos/dbus/shill_device_client.h

Issue 156353002: Implement networkingPrivate.setWifiTDLSEnabledState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable TDLS tests on non-chromeos Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « chromeos/dbus/fake_shill_manager_client.cc ('k') | chromeos/dbus/shill_device_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 19 matching lines...) Expand all
30 30
31 class ShillPropertyChangedObserver; 31 class ShillPropertyChangedObserver;
32 32
33 // ShillDeviceClient is used to communicate with the Shill Device service. 33 // ShillDeviceClient is used to communicate with the Shill Device service.
34 // All methods should be called from the origin thread which initializes the 34 // All methods should be called from the origin thread which initializes the
35 // DBusThreadManager instance. 35 // DBusThreadManager instance.
36 class CHROMEOS_EXPORT ShillDeviceClient : public DBusClient { 36 class CHROMEOS_EXPORT ShillDeviceClient : public DBusClient {
37 public: 37 public:
38 typedef ShillClientHelper::PropertyChangedHandler PropertyChangedHandler; 38 typedef ShillClientHelper::PropertyChangedHandler PropertyChangedHandler;
39 typedef ShillClientHelper::DictionaryValueCallback DictionaryValueCallback; 39 typedef ShillClientHelper::DictionaryValueCallback DictionaryValueCallback;
40 typedef ShillClientHelper::StringCallback StringCallback;
40 typedef ShillClientHelper::ErrorCallback ErrorCallback; 41 typedef ShillClientHelper::ErrorCallback ErrorCallback;
41 42
42 // Interface for setting up devices for testing. 43 // Interface for setting up devices for testing.
43 // Accessed through GetTestInterface(), only implemented in the Stub Impl. 44 // Accessed through GetTestInterface(), only implemented in the Stub Impl.
44 class TestInterface { 45 class TestInterface {
45 public: 46 public:
46 virtual void AddDevice(const std::string& device_path, 47 virtual void AddDevice(const std::string& device_path,
47 const std::string& type, 48 const std::string& type,
48 const std::string& object_path) = 0; 49 const std::string& object_path) = 0;
49 virtual void RemoveDevice(const std::string& device_path) = 0; 50 virtual void RemoveDevice(const std::string& device_path) = 0;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 // Calls the SetCarrier method. 145 // Calls the SetCarrier method.
145 // |callback| is called after the method call finishes. 146 // |callback| is called after the method call finishes.
146 virtual void SetCarrier(const dbus::ObjectPath& device_path, 147 virtual void SetCarrier(const dbus::ObjectPath& device_path,
147 const std::string& carrier, 148 const std::string& carrier,
148 const base::Closure& callback, 149 const base::Closure& callback,
149 const ErrorCallback& error_callback) = 0; 150 const ErrorCallback& error_callback) = 0;
150 151
151 // Calls the Reset method. 152 // Calls the Reset method.
152 // |callback| is called after the method call finishes. 153 // |callback| is called after the method call finishes.
153 virtual void Reset(const dbus::ObjectPath& device_path, 154 virtual void Reset(const dbus::ObjectPath& device_path,
154 const base::Closure& callback, 155 const base::Closure& callback,
155 const ErrorCallback& error_callback) = 0; 156 const ErrorCallback& error_callback) = 0;
157
158 // Calls the PerformTDLSOperation method.
159 // |callback| is called after the method call finishes.
160 virtual void PerformTDLSOperation(const dbus::ObjectPath& device_path,
161 const std::string& operation,
162 const std::string& peer,
163 const StringCallback& callback,
164 const ErrorCallback& error_callback) = 0;
156 165
157 // Returns an interface for testing (stub only), or returns NULL. 166 // Returns an interface for testing (stub only), or returns NULL.
158 virtual TestInterface* GetTestInterface() = 0; 167 virtual TestInterface* GetTestInterface() = 0;
159 168
160 protected: 169 protected:
161 friend class ShillDeviceClientTest; 170 friend class ShillDeviceClientTest;
162 171
163 // Create() should be used instead. 172 // Create() should be used instead.
164 ShillDeviceClient(); 173 ShillDeviceClient();
165 174
166 private: 175 private:
167 DISALLOW_COPY_AND_ASSIGN(ShillDeviceClient); 176 DISALLOW_COPY_AND_ASSIGN(ShillDeviceClient);
168 }; 177 };
169 178
170 } // namespace chromeos 179 } // namespace chromeos
171 180
172 #endif // CHROMEOS_DBUS_SHILL_DEVICE_CLIENT_H_ 181 #endif // CHROMEOS_DBUS_SHILL_DEVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_shill_manager_client.cc ('k') | chromeos/dbus/shill_device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698