| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 void OnOwnership(base::Callback<void(bool)> callback, | 99 void OnOwnership(base::Callback<void(bool)> callback, |
| 100 const std::string& service_name, | 100 const std::string& service_name, |
| 101 bool success); | 101 bool success); |
| 102 | 102 |
| 103 // Called when a method is exported. | 103 // Called when a method is exported. |
| 104 void OnExported(const std::string& interface_name, | 104 void OnExported(const std::string& interface_name, |
| 105 const std::string& method_name, | 105 const std::string& method_name, |
| 106 bool success); | 106 bool success); |
| 107 | 107 |
| 108 // base::Thread override. | 108 // base::Thread override. |
| 109 virtual void Run(base::MessageLoop* message_loop) OVERRIDE; | 109 virtual void Run(base::MessageLoop* message_loop) override; |
| 110 | 110 |
| 111 // | 111 // |
| 112 // Exported methods. | 112 // Exported methods. |
| 113 // | 113 // |
| 114 | 114 |
| 115 // Echos the text message received from the method call. | 115 // Echos the text message received from the method call. |
| 116 void Echo(MethodCall* method_call, | 116 void Echo(MethodCall* method_call, |
| 117 dbus::ExportedObject::ResponseSender response_sender); | 117 dbus::ExportedObject::ResponseSender response_sender); |
| 118 | 118 |
| 119 // Echos the text message received from the method call, but sleeps for | 119 // Echos the text message received from the method call, but sleeps for |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 bool has_ownership_; | 209 bool has_ownership_; |
| 210 | 210 |
| 211 scoped_refptr<Bus> bus_; | 211 scoped_refptr<Bus> bus_; |
| 212 ExportedObject* exported_object_; | 212 ExportedObject* exported_object_; |
| 213 ExportedObject* exported_object_manager_; | 213 ExportedObject* exported_object_manager_; |
| 214 }; | 214 }; |
| 215 | 215 |
| 216 } // namespace dbus | 216 } // namespace dbus |
| 217 | 217 |
| 218 #endif // DBUS_TEST_SERVICE_H_ | 218 #endif // DBUS_TEST_SERVICE_H_ |
| OLD | NEW |