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

Side by Side Diff: trunk/src/dbus/object_proxy.h

Issue 24293002: Revert 224179 "Track active references in ShillClientHelper" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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 | « trunk/src/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
158 // Returns an empty callback that does nothing. Can be used for 156 // Returns an empty callback that does nothing. Can be used for
159 // CallMethod(). 157 // CallMethod().
160 static ResponseCallback EmptyResponseCallback(); 158 static ResponseCallback EmptyResponseCallback();
161 159
162 protected: 160 protected:
163 // This is protected, so we can define sub classes. 161 // This is protected, so we can define sub classes.
164 virtual ~ObjectProxy(); 162 virtual ~ObjectProxy();
165 163
166 private: 164 private:
167 friend class base::RefCountedThreadSafe<ObjectProxy>; 165 friend class base::RefCountedThreadSafe<ObjectProxy>;
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 282
285 // Known name owner of the well-known bus name represnted by |service_name_|. 283 // Known name owner of the well-known bus name represnted by |service_name_|.
286 std::string service_name_owner_; 284 std::string service_name_owner_;
287 285
288 DISALLOW_COPY_AND_ASSIGN(ObjectProxy); 286 DISALLOW_COPY_AND_ASSIGN(ObjectProxy);
289 }; 287 };
290 288
291 } // namespace dbus 289 } // namespace dbus
292 290
293 #endif // DBUS_OBJECT_PROXY_H_ 291 #endif // DBUS_OBJECT_PROXY_H_
OLDNEW
« no previous file with comments | « trunk/src/chromeos/dbus/shill_service_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698