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

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

Issue 10915106: Renaming instances of "flimflam" with "shill", now that we're only (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Upload after merge 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
« no previous file with comments | « chromeos/dbus/shill_client_unittest_base.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_FLIMFLAM_DEVICE_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_SHILL_DEVICE_CLIENT_H_
6 #define CHROMEOS_DBUS_FLIMFLAM_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"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "chromeos/chromeos_export.h" 12 #include "chromeos/chromeos_export.h"
13 #include "chromeos/dbus/dbus_client_implementation_type.h" 13 #include "chromeos/dbus/dbus_client_implementation_type.h"
14 #include "chromeos/dbus/flimflam_client_helper.h" 14 #include "chromeos/dbus/shill_client_helper.h"
15 15
16 namespace base { 16 namespace base {
17 17
18 class Value; 18 class Value;
19 class DictionaryValue; 19 class DictionaryValue;
20 20
21 } // namespace base 21 } // namespace base
22 22
23 namespace dbus { 23 namespace dbus {
24 24
25 class Bus; 25 class Bus;
26 class ObjectPath; 26 class ObjectPath;
27 27
28 } // namespace dbus 28 } // namespace dbus
29 29
30 namespace chromeos { 30 namespace chromeos {
31 31
32 // FlimflamDeviceClient is used to communicate with the Flimflam Device service. 32 // ShillDeviceClient is used to communicate with the Shill Device service.
33 // All methods should be called from the origin thread which initializes the 33 // All methods should be called from the origin thread which initializes the
34 // DBusThreadManager instance. 34 // DBusThreadManager instance.
35 class CHROMEOS_EXPORT FlimflamDeviceClient { 35 class CHROMEOS_EXPORT ShillDeviceClient {
36 public: 36 public:
37 typedef FlimflamClientHelper::PropertyChangedHandler PropertyChangedHandler; 37 typedef ShillClientHelper::PropertyChangedHandler PropertyChangedHandler;
38 typedef FlimflamClientHelper::DictionaryValueCallback DictionaryValueCallback; 38 typedef ShillClientHelper::DictionaryValueCallback DictionaryValueCallback;
39 typedef FlimflamClientHelper::ErrorCallback ErrorCallback; 39 typedef ShillClientHelper::ErrorCallback ErrorCallback;
40 40
41 virtual ~FlimflamDeviceClient(); 41 virtual ~ShillDeviceClient();
42 42
43 // Factory function, creates a new instance which is owned by the caller. 43 // Factory function, creates a new instance which is owned by the caller.
44 // For normal usage, access the singleton via DBusThreadManager::Get(). 44 // For normal usage, access the singleton via DBusThreadManager::Get().
45 static FlimflamDeviceClient* Create(DBusClientImplementationType type, 45 static ShillDeviceClient* Create(DBusClientImplementationType type,
46 dbus::Bus* bus); 46 dbus::Bus* bus);
47 47
48 // Sets PropertyChanged signal handler. 48 // Sets PropertyChanged signal handler.
49 virtual void SetPropertyChangedHandler( 49 virtual void SetPropertyChangedHandler(
50 const dbus::ObjectPath& device_path, 50 const dbus::ObjectPath& device_path,
51 const PropertyChangedHandler& handler) = 0; 51 const PropertyChangedHandler& handler) = 0;
52 52
53 // Resets PropertyChanged signal handler. 53 // Resets PropertyChanged signal handler.
54 virtual void ResetPropertyChangedHandler( 54 virtual void ResetPropertyChangedHandler(
55 const dbus::ObjectPath& device_path) = 0; 55 const dbus::ObjectPath& device_path) = 0;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 135
136 // Calls Register method. 136 // Calls Register method.
137 // |callback| is called after the method call finishes. 137 // |callback| is called after the method call finishes.
138 virtual void Register(const dbus::ObjectPath& device_path, 138 virtual void Register(const dbus::ObjectPath& device_path,
139 const std::string& network_id, 139 const std::string& network_id,
140 const base::Closure& callback, 140 const base::Closure& callback,
141 const ErrorCallback& error_callback) = 0; 141 const ErrorCallback& error_callback) = 0;
142 142
143 protected: 143 protected:
144 // Create() should be used instead. 144 // Create() should be used instead.
145 FlimflamDeviceClient(); 145 ShillDeviceClient();
146 146
147 private: 147 private:
148 DISALLOW_COPY_AND_ASSIGN(FlimflamDeviceClient); 148 DISALLOW_COPY_AND_ASSIGN(ShillDeviceClient);
149 }; 149 };
150 150
151 } // namespace chromeos 151 } // namespace chromeos
152 152
153 #endif // CHROMEOS_DBUS_FLIMFLAM_DEVICE_CLIENT_H_ 153 #endif // CHROMEOS_DBUS_SHILL_DEVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/shill_client_unittest_base.cc ('k') | chromeos/dbus/shill_device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698