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

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

Issue 330833003: Rely on Service.Visible instead of Manager.Services (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sort services when updated, add test Created 6 years, 6 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_MANAGER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ 6 #define CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 virtual void AddProfile(const std::string& profile_path) = 0; 55 virtual void AddProfile(const std::string& profile_path) = 0;
56 56
57 // Used to reset all properties; does not notify observers. 57 // Used to reset all properties; does not notify observers.
58 virtual void ClearProperties() = 0; 58 virtual void ClearProperties() = 0;
59 59
60 // Set manager property. 60 // Set manager property.
61 virtual void SetManagerProperty(const std::string& key, 61 virtual void SetManagerProperty(const std::string& key,
62 const base::Value& value) = 0; 62 const base::Value& value) = 0;
63 63
64 // Modify services in the Manager's list. 64 // Modify services in the Manager's list.
65 virtual void AddManagerService(const std::string& service_path) = 0; 65 virtual void AddManagerService(const std::string& service_path,
66 bool notify_observers) = 0;
66 virtual void RemoveManagerService(const std::string& service_path) = 0; 67 virtual void RemoveManagerService(const std::string& service_path) = 0;
67 virtual void ClearManagerServices() = 0; 68 virtual void ClearManagerServices() = 0;
68 69
69 // Called by ShillServiceClient when a service's State property changes, 70 // Called by ShillServiceClient when a service's State property changes,
70 // before notifying observers. Sets the DefaultService property to empty 71 // before notifying observers. Sets the DefaultService property to empty
71 // if the state changes to a non-connected state. 72 // if the state changes to a non-connected state.
72 virtual void ServiceStateChanged(const std::string& service_path, 73 virtual void ServiceStateChanged(const std::string& service_path,
73 const std::string& state) = 0; 74 const std::string& state) = 0;
74 75
75 // Called by ShillServiceClient when a service's State or Visibile 76 // Called by ShillServiceClient when a service's State or Visibile
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // Create() should be used instead. 231 // Create() should be used instead.
231 ShillManagerClient(); 232 ShillManagerClient();
232 233
233 private: 234 private:
234 DISALLOW_COPY_AND_ASSIGN(ShillManagerClient); 235 DISALLOW_COPY_AND_ASSIGN(ShillManagerClient);
235 }; 236 };
236 237
237 } // namespace chromeos 238 } // namespace chromeos
238 239
239 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ 240 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698