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

Side by Side Diff: dbus/object_proxy.h

Issue 8201023: Make ExportedObject and ObjectProxy own Bus as scoped_refptr. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 9 years, 2 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 | « dbus/exported_object.h ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // Runs the method. Helper function for HandleMessage(). 168 // Runs the method. Helper function for HandleMessage().
169 void RunMethod(base::TimeTicks start_time, 169 void RunMethod(base::TimeTicks start_time,
170 SignalCallback signal_callback, 170 SignalCallback signal_callback,
171 Signal* signal); 171 Signal* signal);
172 172
173 // Redirects the function call to HandleMessage(). 173 // Redirects the function call to HandleMessage().
174 static DBusHandlerResult HandleMessageThunk(DBusConnection* connection, 174 static DBusHandlerResult HandleMessageThunk(DBusConnection* connection,
175 DBusMessage* raw_message, 175 DBusMessage* raw_message,
176 void* user_data); 176 void* user_data);
177 177
178 Bus* bus_; 178 scoped_refptr<Bus> bus_;
179 std::string service_name_; 179 std::string service_name_;
180 std::string object_path_; 180 std::string object_path_;
181 181
182 // True if the message filter was added. 182 // True if the message filter was added.
183 bool filter_added_; 183 bool filter_added_;
184 184
185 // The method table where keys are absolute signal names (i.e. interface 185 // The method table where keys are absolute signal names (i.e. interface
186 // name + signal name), and values are the corresponding callbacks. 186 // name + signal name), and values are the corresponding callbacks.
187 typedef std::map<std::string, SignalCallback> MethodTable; 187 typedef std::map<std::string, SignalCallback> MethodTable;
188 MethodTable method_table_; 188 MethodTable method_table_;
189 189
190 std::vector<std::string> match_rules_; 190 std::vector<std::string> match_rules_;
191 191
192 DISALLOW_COPY_AND_ASSIGN(ObjectProxy); 192 DISALLOW_COPY_AND_ASSIGN(ObjectProxy);
193 }; 193 };
194 194
195 } // namespace dbus 195 } // namespace dbus
196 196
197 #endif // DBUS_OBJECT_PROXY_H_ 197 #endif // DBUS_OBJECT_PROXY_H_
OLDNEW
« no previous file with comments | « dbus/exported_object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698