| 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/object_proxy.h" | 5 #include "dbus/object_proxy.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
| 13 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram_macros.h" |
| 14 #include "base/strings/string_piece.h" | 14 #include "base/strings/string_piece.h" |
| 15 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
| 16 #include "base/task_runner_util.h" | 16 #include "base/task_runner_util.h" |
| 17 #include "base/threading/thread.h" | 17 #include "base/threading/thread.h" |
| 18 #include "base/threading/thread_restrictions.h" | 18 #include "base/threading/thread_restrictions.h" |
| 19 #include "dbus/bus.h" | 19 #include "dbus/bus.h" |
| 20 #include "dbus/dbus_statistics.h" | 20 #include "dbus/dbus_statistics.h" |
| 21 #include "dbus/message.h" | 21 #include "dbus/message.h" |
| 22 #include "dbus/object_path.h" | 22 #include "dbus/object_path.h" |
| 23 #include "dbus/scoped_dbus_error.h" | 23 #include "dbus/scoped_dbus_error.h" |
| (...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 708 bool service_is_available) { | 708 bool service_is_available) { |
| 709 bus_->AssertOnOriginThread(); | 709 bus_->AssertOnOriginThread(); |
| 710 | 710 |
| 711 std::vector<WaitForServiceToBeAvailableCallback> callbacks; | 711 std::vector<WaitForServiceToBeAvailableCallback> callbacks; |
| 712 callbacks.swap(wait_for_service_to_be_available_callbacks_); | 712 callbacks.swap(wait_for_service_to_be_available_callbacks_); |
| 713 for (size_t i = 0; i < callbacks.size(); ++i) | 713 for (size_t i = 0; i < callbacks.size(); ++i) |
| 714 callbacks[i].Run(service_is_available); | 714 callbacks[i].Run(service_is_available); |
| 715 } | 715 } |
| 716 | 716 |
| 717 } // namespace dbus | 717 } // namespace dbus |
| OLD | NEW |