| 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 // TODO(satorux): | 5 // TODO(satorux): |
| 6 // - Handle "disconnected" signal. | 6 // - Handle "disconnected" signal. |
| 7 // - Collect metrics (ex. # of method calls, method call time, etc.) | |
| 8 | 7 |
| 9 #include "dbus/bus.h" | 8 #include "dbus/bus.h" |
| 10 | 9 |
| 11 #include "base/bind.h" | 10 #include "base/bind.h" |
| 12 #include "base/logging.h" | 11 #include "base/logging.h" |
| 13 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
| 14 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
| 15 #include "base/threading/thread.h" | 14 #include "base/threading/thread.h" |
| 16 #include "base/threading/thread_restrictions.h" | 15 #include "base/threading/thread_restrictions.h" |
| 17 #include "base/time.h" | 16 #include "base/time.h" |
| (...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 723 } | 722 } |
| 724 | 723 |
| 725 void Bus::OnDispatchStatusChangedThunk(DBusConnection* connection, | 724 void Bus::OnDispatchStatusChangedThunk(DBusConnection* connection, |
| 726 DBusDispatchStatus status, | 725 DBusDispatchStatus status, |
| 727 void* data) { | 726 void* data) { |
| 728 Bus* self = static_cast<Bus*>(data); | 727 Bus* self = static_cast<Bus*>(data); |
| 729 return self->OnDispatchStatusChanged(connection, status); | 728 return self->OnDispatchStatusChanged(connection, status); |
| 730 } | 729 } |
| 731 | 730 |
| 732 } // namespace dbus | 731 } // namespace dbus |
| OLD | NEW |