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/bus.h" | 5 #include "dbus/bus.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/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
654 if (!name_owner_changed_callback_.is_null()) { | 654 if (!name_owner_changed_callback_.is_null()) { |
655 const base::TimeTicks start_time = base::TimeTicks::Now(); | 655 const base::TimeTicks start_time = base::TimeTicks::Now(); |
656 Signal* released_signal = signal.release(); | 656 Signal* released_signal = signal.release(); |
657 bus_->PostTaskToOriginThread(FROM_HERE, | 657 bus_->PostTaskToOriginThread(FROM_HERE, |
658 base::Bind(&ObjectProxy::RunMethod, | 658 base::Bind(&ObjectProxy::RunMethod, |
659 this, | 659 this, |
660 start_time, | 660 start_time, |
661 name_owner_changed_callback_, | 661 name_owner_changed_callback_, |
662 released_signal)); | 662 released_signal)); |
663 } | 663 } |
664 return DBUS_HANDLER_RESULT_HANDLED; | |
665 } | 664 } |
666 } | 665 } |
667 | 666 |
668 // Untrusted or uninteresting signal | 667 // Always return unhandled to let other object proxies handle the same |
| 668 // signal. |
669 return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; | 669 return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; |
670 } | 670 } |
671 | 671 |
672 } // namespace dbus | 672 } // namespace dbus |
OLD | NEW |