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

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: AddServiceWithIPConfig Created 7 years, 9 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 bool add_to_watch_list) = 0; 51 bool add_to_watch_list) = 0;
52 virtual void AddServiceWithIPConfig(const std::string& service_path,
pneubeck (no reviews) 2013/03/28 10:37:54 If you want to have initial properties set, then w
gauravsh 2013/03/28 18:48:54 I don't anticipate adding more right now. IPConfig
stevenjb 2013/03/28 19:27:13 I agree that AddServiceWithProperties is probably
53 const std::string& name,
54 const std::string& type,
55 const std::string& state,
56 const std::string& ipconfig_path,
57 bool add_to_watch_list) = 0;
52 virtual void RemoveService(const std::string& service_path) = 0; 58 virtual void RemoveService(const std::string& service_path) = 0;
53 virtual void SetServiceProperty(const std::string& service_path, 59 virtual void SetServiceProperty(const std::string& service_path,
54 const std::string& property, 60 const std::string& property,
55 const base::Value& value) = 0; 61 const base::Value& value) = 0;
56 virtual const base::DictionaryValue* GetServiceProperties( 62 virtual const base::DictionaryValue* GetServiceProperties(
57 const std::string& service_path) const = 0; 63 const std::string& service_path) const = 0;
58 virtual void ClearServices() = 0; 64 virtual void ClearServices() = 0;
59 65
60 protected: 66 protected:
61 ~TestInterface() {} 67 ~TestInterface() {}
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // Create() should be used instead. 159 // Create() should be used instead.
154 ShillServiceClient(); 160 ShillServiceClient();
155 161
156 private: 162 private:
157 DISALLOW_COPY_AND_ASSIGN(ShillServiceClient); 163 DISALLOW_COPY_AND_ASSIGN(ShillServiceClient);
158 }; 164 };
159 165
160 } // namespace chromeos 166 } // namespace chromeos
161 167
162 #endif // CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_H_ 168 #endif // CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698