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_EXPORTED_OBJECT_H_ | 5 #ifndef DBUS_EXPORTED_OBJECT_H_ |
6 #define DBUS_EXPORTED_OBJECT_H_ | 6 #define DBUS_EXPORTED_OBJECT_H_ |
7 | 7 |
8 #include <dbus/dbus.h> | 8 #include <dbus/dbus.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 #include <string> | 11 #include <string> |
12 #include <utility> | 12 #include <utility> |
13 | 13 |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/synchronization/waitable_event.h" | 16 #include "base/synchronization/waitable_event.h" |
17 #include "base/threading/platform_thread.h" | 17 #include "base/threading/platform_thread.h" |
18 #include "base/time.h" | 18 #include "base/time/time.h" |
19 #include "dbus/dbus_export.h" | 19 #include "dbus/dbus_export.h" |
20 #include "dbus/object_path.h" | 20 #include "dbus/object_path.h" |
21 | 21 |
22 namespace dbus { | 22 namespace dbus { |
23 | 23 |
24 class Bus; | 24 class Bus; |
25 class MethodCall; | 25 class MethodCall; |
26 class Response; | 26 class Response; |
27 class Signal; | 27 class Signal; |
28 | 28 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 163 |
164 // The method table where keys are absolute method names (i.e. interface | 164 // The method table where keys are absolute method names (i.e. interface |
165 // name + method name), and values are the corresponding callbacks. | 165 // name + method name), and values are the corresponding callbacks. |
166 typedef std::map<std::string, MethodCallCallback> MethodTable; | 166 typedef std::map<std::string, MethodCallCallback> MethodTable; |
167 MethodTable method_table_; | 167 MethodTable method_table_; |
168 }; | 168 }; |
169 | 169 |
170 } // namespace dbus | 170 } // namespace dbus |
171 | 171 |
172 #endif // DBUS_EXPORTED_OBJECT_H_ | 172 #endif // DBUS_EXPORTED_OBJECT_H_ |
OLD | NEW |