| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |