| OLD | NEW |
| 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_PROFILE_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_SHILL_PROFILE_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_SHILL_PROFILE_CLIENT_H_ | 6 #define CHROMEOS_DBUS_SHILL_PROFILE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 protected: | 69 protected: |
| 70 virtual ~TestInterface() {} | 70 virtual ~TestInterface() {} |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 virtual ~ShillProfileClient(); | 73 virtual ~ShillProfileClient(); |
| 74 | 74 |
| 75 // Factory function, creates a new instance which is owned by the caller. | 75 // Factory function, creates a new instance which is owned by the caller. |
| 76 // For normal usage, access the singleton via DBusThreadManager::Get(). | 76 // For normal usage, access the singleton via DBusThreadManager::Get(). |
| 77 static ShillProfileClient* Create(); | 77 static ShillProfileClient* Create(); |
| 78 | 78 |
| 79 // Returns the shared profile path. |
| 80 static std::string GetSharedProfilePath(); |
| 81 |
| 79 // Adds a property changed |observer| for the profile at |profile_path|. | 82 // Adds a property changed |observer| for the profile at |profile_path|. |
| 80 virtual void AddPropertyChangedObserver( | 83 virtual void AddPropertyChangedObserver( |
| 81 const dbus::ObjectPath& profile_path, | 84 const dbus::ObjectPath& profile_path, |
| 82 ShillPropertyChangedObserver* observer) = 0; | 85 ShillPropertyChangedObserver* observer) = 0; |
| 83 | 86 |
| 84 // Removes a property changed |observer| for the profile at |profile_path|. | 87 // Removes a property changed |observer| for the profile at |profile_path|. |
| 85 virtual void RemovePropertyChangedObserver( | 88 virtual void RemovePropertyChangedObserver( |
| 86 const dbus::ObjectPath& profile_path, | 89 const dbus::ObjectPath& profile_path, |
| 87 ShillPropertyChangedObserver* observer) = 0; | 90 ShillPropertyChangedObserver* observer) = 0; |
| 88 | 91 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 116 // Create() should be used instead. | 119 // Create() should be used instead. |
| 117 ShillProfileClient(); | 120 ShillProfileClient(); |
| 118 | 121 |
| 119 private: | 122 private: |
| 120 DISALLOW_COPY_AND_ASSIGN(ShillProfileClient); | 123 DISALLOW_COPY_AND_ASSIGN(ShillProfileClient); |
| 121 }; | 124 }; |
| 122 | 125 |
| 123 } // namespace chromeos | 126 } // namespace chromeos |
| 124 | 127 |
| 125 #endif // CHROMEOS_DBUS_SHILL_PROFILE_CLIENT_H_ | 128 #endif // CHROMEOS_DBUS_SHILL_PROFILE_CLIENT_H_ |
| OLD | NEW |