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 #include "dbus/exported_object.h" | 5 #include "dbus/exported_object.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
12 #include "base/threading/thread_restrictions.h" | 12 #include "base/threading/thread_restrictions.h" |
13 #include "base/time.h" | 13 #include "base/time/time.h" |
14 #include "dbus/bus.h" | 14 #include "dbus/bus.h" |
15 #include "dbus/message.h" | 15 #include "dbus/message.h" |
16 #include "dbus/object_path.h" | 16 #include "dbus/object_path.h" |
17 #include "dbus/scoped_dbus_error.h" | 17 #include "dbus/scoped_dbus_error.h" |
18 | 18 |
19 namespace dbus { | 19 namespace dbus { |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 // Used for success ratio histograms. 1 for success, 0 for failure. | 23 // Used for success ratio histograms. 1 for success, 0 for failure. |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 return self->HandleMessage(connection, raw_message); | 308 return self->HandleMessage(connection, raw_message); |
309 } | 309 } |
310 | 310 |
311 void ExportedObject::OnUnregisteredThunk(DBusConnection *connection, | 311 void ExportedObject::OnUnregisteredThunk(DBusConnection *connection, |
312 void* user_data) { | 312 void* user_data) { |
313 ExportedObject* self = reinterpret_cast<ExportedObject*>(user_data); | 313 ExportedObject* self = reinterpret_cast<ExportedObject*>(user_data); |
314 return self->OnUnregistered(connection); | 314 return self->OnUnregistered(connection); |
315 } | 315 } |
316 | 316 |
317 } // namespace dbus | 317 } // namespace dbus |
OLD | NEW |