| OLD | NEW |
| 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_EXPORTED_OBJECT_H_ | 5 #ifndef DBUS_EXPORTED_OBJECT_H_ |
| 6 #define DBUS_EXPORTED_OBJECT_H_ | 6 #define DBUS_EXPORTED_OBJECT_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <dbus/dbus.h> |
| 10 |
| 11 #include <map> |
| 9 #include <string> | 12 #include <string> |
| 10 #include <map> | |
| 11 #include <utility> | 13 #include <utility> |
| 12 | 14 |
| 13 #include <dbus/dbus.h> | |
| 14 | |
| 15 #include "base/callback.h" | 15 #include "base/callback.h" |
| 16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
| 17 #include "base/synchronization/waitable_event.h" | 17 #include "base/synchronization/waitable_event.h" |
| 18 #include "base/threading/platform_thread.h" | 18 #include "base/threading/platform_thread.h" |
| 19 #include "base/time.h" | 19 #include "base/time.h" |
| 20 | 20 |
| 21 class MessageLoop; | |
| 22 | |
| 23 namespace dbus { | 21 namespace dbus { |
| 24 | 22 |
| 25 class Bus; | 23 class Bus; |
| 26 class MethodCall; | 24 class MethodCall; |
| 27 class Response; | 25 class Response; |
| 28 class Signal; | 26 class Signal; |
| 29 | 27 |
| 30 // ExportedObject is used to export objects and methods to other D-Bus | 28 // ExportedObject is used to export objects and methods to other D-Bus |
| 31 // clients. | 29 // clients. |
| 32 // | 30 // |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 | 149 |
| 152 // The method table where keys are absolute method names (i.e. interface | 150 // The method table where keys are absolute method names (i.e. interface |
| 153 // name + method name), and values are the corresponding callbacks. | 151 // name + method name), and values are the corresponding callbacks. |
| 154 typedef std::map<std::string, MethodCallCallback> MethodTable; | 152 typedef std::map<std::string, MethodCallCallback> MethodTable; |
| 155 MethodTable method_table_; | 153 MethodTable method_table_; |
| 156 }; | 154 }; |
| 157 | 155 |
| 158 } // namespace dbus | 156 } // namespace dbus |
| 159 | 157 |
| 160 #endif // DBUS_EXPORTED_OBJECT_H_ | 158 #endif // DBUS_EXPORTED_OBJECT_H_ |
| OLD | NEW |