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

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

Issue 12634019: NetworkChangeNotifierChromeos: Handle IPConfig property changes on the default network (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more cleanup Created 7 years, 8 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
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_SERVICE_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_H_
6 #define CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_H_ 6 #define CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 30 matching lines...) Expand all
41 typedef ShillClientHelper::ErrorCallback ErrorCallback; 41 typedef ShillClientHelper::ErrorCallback ErrorCallback;
42 42
43 // Interface for setting up services for testing. Accessed through 43 // Interface for setting up services for testing. Accessed through
44 // GetTestInterface(), only implemented in the stub implementation. 44 // GetTestInterface(), only implemented in the stub implementation.
45 class TestInterface { 45 class TestInterface {
46 public: 46 public:
47 virtual void AddService(const std::string& service_path, 47 virtual void AddService(const std::string& service_path,
48 const std::string& name, 48 const std::string& name,
49 const std::string& type, 49 const std::string& type,
50 const std::string& state, 50 const std::string& state,
51 const std::string& ipconfig_path,
stevenjb 2013/03/27 22:18:52 Do we really want to add this to AddService()? It
gauravsh 2013/03/27 23:16:04 This is needed because there are 2 distinct scenar
stevenjb 2013/03/27 23:55:10 Yeah, I'd prefer a separate AddServiceWithIpconfig
pneubeck (no reviews) 2013/03/28 10:37:54 If you want to have initial properties set, then w
51 bool add_to_watch_list) = 0; 52 bool add_to_watch_list) = 0;
52 virtual void RemoveService(const std::string& service_path) = 0; 53 virtual void RemoveService(const std::string& service_path) = 0;
53 virtual void SetServiceProperty(const std::string& service_path, 54 virtual void SetServiceProperty(const std::string& service_path,
54 const std::string& property, 55 const std::string& property,
55 const base::Value& value) = 0; 56 const base::Value& value) = 0;
56 virtual const base::DictionaryValue* GetServiceProperties( 57 virtual const base::DictionaryValue* GetServiceProperties(
57 const std::string& service_path) const = 0; 58 const std::string& service_path) const = 0;
58 virtual void ClearServices() = 0; 59 virtual void ClearServices() = 0;
59 60
60 protected: 61 protected:
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // Create() should be used instead. 154 // Create() should be used instead.
154 ShillServiceClient(); 155 ShillServiceClient();
155 156
156 private: 157 private:
157 DISALLOW_COPY_AND_ASSIGN(ShillServiceClient); 158 DISALLOW_COPY_AND_ASSIGN(ShillServiceClient);
158 }; 159 };
159 160
160 } // namespace chromeos 161 } // namespace chromeos
161 162
162 #endif // CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_H_ 163 #endif // CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698