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

Side by Side Diff: dbus/object_proxy.h

Issue 23658053: Track active references in ShillClientHelper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Feedback Created 7 years, 3 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
« no previous file with comments | « chromeos/dbus/shill_service_client.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 DBUS_OBJECT_PROXY_H_ 5 #ifndef DBUS_OBJECT_PROXY_H_
6 #define DBUS_OBJECT_PROXY_H_ 6 #define DBUS_OBJECT_PROXY_H_
7 7
8 #include <dbus/dbus.h> 8 #include <dbus/dbus.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // the origin thread when D-Bus system sends "NameOwnerChanged" for the name 146 // the origin thread when D-Bus system sends "NameOwnerChanged" for the name
147 // represented by |service_name_|. 147 // represented by |service_name_|.
148 virtual void SetNameOwnerChangedCallback(SignalCallback callback); 148 virtual void SetNameOwnerChangedCallback(SignalCallback callback);
149 149
150 // Detaches from the remote object. The Bus object will take care of 150 // Detaches from the remote object. The Bus object will take care of
151 // detaching so you don't have to do this manually. 151 // detaching so you don't have to do this manually.
152 // 152 //
153 // BLOCKING CALL. 153 // BLOCKING CALL.
154 virtual void Detach(); 154 virtual void Detach();
155 155
156 const ObjectPath& object_path() const { return object_path_; }
157
156 // Returns an empty callback that does nothing. Can be used for 158 // Returns an empty callback that does nothing. Can be used for
157 // CallMethod(). 159 // CallMethod().
158 static ResponseCallback EmptyResponseCallback(); 160 static ResponseCallback EmptyResponseCallback();
159 161
160 protected: 162 protected:
161 // This is protected, so we can define sub classes. 163 // This is protected, so we can define sub classes.
162 virtual ~ObjectProxy(); 164 virtual ~ObjectProxy();
163 165
164 private: 166 private:
165 friend class base::RefCountedThreadSafe<ObjectProxy>; 167 friend class base::RefCountedThreadSafe<ObjectProxy>;
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 284
283 // Known name owner of the well-known bus name represnted by |service_name_|. 285 // Known name owner of the well-known bus name represnted by |service_name_|.
284 std::string service_name_owner_; 286 std::string service_name_owner_;
285 287
286 DISALLOW_COPY_AND_ASSIGN(ObjectProxy); 288 DISALLOW_COPY_AND_ASSIGN(ObjectProxy);
287 }; 289 };
288 290
289 } // namespace dbus 291 } // namespace dbus
290 292
291 #endif // DBUS_OBJECT_PROXY_H_ 293 #endif // DBUS_OBJECT_PROXY_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/shill_service_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698