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

Side by Side Diff: dbus/object_manager.h

Issue 2916723002: [spelling] existance to existence (Closed)
Patch Set: Created 3 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 DBUS_OBJECT_MANAGER_H_ 5 #ifndef DBUS_OBJECT_MANAGER_H_
6 #define DBUS_OBJECT_MANAGER_H_ 6 #define DBUS_OBJECT_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 // to this manager. 204 // to this manager.
205 std::vector<ObjectPath> GetObjects(); 205 std::vector<ObjectPath> GetObjects();
206 206
207 // Returns the list of object paths, in an undefined order, of objects 207 // Returns the list of object paths, in an undefined order, of objects
208 // implementing the interface named in |interface_name| known to this manager. 208 // implementing the interface named in |interface_name| known to this manager.
209 std::vector<ObjectPath> GetObjectsWithInterface( 209 std::vector<ObjectPath> GetObjectsWithInterface(
210 const std::string& interface_name); 210 const std::string& interface_name);
211 211
212 // Returns a ObjectProxy pointer for the given |object_path|. Unlike 212 // Returns a ObjectProxy pointer for the given |object_path|. Unlike
213 // the equivalent method on Bus this will return NULL if the object 213 // the equivalent method on Bus this will return NULL if the object
214 // manager has not been informed of that object's existance. 214 // manager has not been informed of that object's existence.
215 ObjectProxy* GetObjectProxy(const ObjectPath& object_path); 215 ObjectProxy* GetObjectProxy(const ObjectPath& object_path);
216 216
217 // Returns a PropertySet* pointer for the given |object_path| and 217 // Returns a PropertySet* pointer for the given |object_path| and
218 // |interface_name|, or NULL if the object manager has not been informed of 218 // |interface_name|, or NULL if the object manager has not been informed of
219 // that object's existance or the interface's properties. The caller should 219 // that object's existence or the interface's properties. The caller should
220 // cast the returned pointer to the appropriate type, e.g.: 220 // cast the returned pointer to the appropriate type, e.g.:
221 // static_cast<Properties*>(GetProperties(object_path, my_interface)); 221 // static_cast<Properties*>(GetProperties(object_path, my_interface));
222 PropertySet* GetProperties(const ObjectPath& object_path, 222 PropertySet* GetProperties(const ObjectPath& object_path,
223 const std::string& interface_name); 223 const std::string& interface_name);
224 224
225 // Instructs the object manager to refresh its list of managed objects; 225 // Instructs the object manager to refresh its list of managed objects;
226 // automatically called by the D-Bus thread manager, there should never be 226 // automatically called by the D-Bus thread manager, there should never be
227 // a need to call this manually. 227 // a need to call this manually.
228 void GetManagedObjects(); 228 void GetManagedObjects();
229 229
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 // Note: This should remain the last member so it'll be destroyed and 353 // Note: This should remain the last member so it'll be destroyed and
354 // invalidate its weak pointers before any other members are destroyed. 354 // invalidate its weak pointers before any other members are destroyed.
355 base::WeakPtrFactory<ObjectManager> weak_ptr_factory_; 355 base::WeakPtrFactory<ObjectManager> weak_ptr_factory_;
356 356
357 DISALLOW_COPY_AND_ASSIGN(ObjectManager); 357 DISALLOW_COPY_AND_ASSIGN(ObjectManager);
358 }; 358 };
359 359
360 } // namespace dbus 360 } // namespace dbus
361 361
362 #endif // DBUS_OBJECT_MANAGER_H_ 362 #endif // DBUS_OBJECT_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698