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

Side by Side Diff: dbus/test_service.h

Issue 125673003: dbus: Add comments about the right way to expose methods (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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') | dbus/test_service.cc » ('j') | 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_TEST_SERVICE_H_ 5 #ifndef DBUS_TEST_SERVICE_H_
6 #define DBUS_TEST_SERVICE_H_ 6 #define DBUS_TEST_SERVICE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // Helper function for SendPropertyChangedSignal(). 163 // Helper function for SendPropertyChangedSignal().
164 void SendPropertyChangedSignalInternal(const std::string& name); 164 void SendPropertyChangedSignalInternal(const std::string& name);
165 165
166 // Helper function for RequestOwnership(). 166 // Helper function for RequestOwnership().
167 void RequestOwnershipInternal(base::Callback<void(bool)> callback); 167 void RequestOwnershipInternal(base::Callback<void(bool)> callback);
168 168
169 // Options to use when requesting service ownership. 169 // Options to use when requesting service ownership.
170 Bus::ServiceOwnershipOptions request_ownership_options_; 170 Bus::ServiceOwnershipOptions request_ownership_options_;
171 171
172 scoped_refptr<base::SequencedTaskRunner> dbus_task_runner_; 172 scoped_refptr<base::SequencedTaskRunner> dbus_task_runner_;
173 base::WaitableEvent on_all_methods_exported_; 173 base::WaitableEvent on_name_obtained_;
174 // The number of methods actually exported. 174 // The number of methods actually exported.
175 int num_exported_methods_; 175 int num_exported_methods_;
176 176
177 // True iff this instance has successfully acquired the name ownership. 177 // True iff this instance has successfully acquired the name ownership.
178 bool has_ownership_; 178 bool has_ownership_;
179 179
180 scoped_refptr<Bus> bus_; 180 scoped_refptr<Bus> bus_;
181 ExportedObject* exported_object_; 181 ExportedObject* exported_object_;
182 ExportedObject* exported_object_manager_; 182 ExportedObject* exported_object_manager_;
183 }; 183 };
184 184
185 } // namespace dbus 185 } // namespace dbus
186 186
187 #endif // DBUS_TEST_SERVICE_H_ 187 #endif // DBUS_TEST_SERVICE_H_
OLDNEW
« no previous file with comments | « dbus/exported_object.h ('k') | dbus/test_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698