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 <stddef.h> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/logging.h" | 10 #include "base/logging.h" |
9 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
10 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
11 #include "base/strings/string_piece.h" | 13 #include "base/strings/string_piece.h" |
12 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
13 #include "base/task_runner_util.h" | 15 #include "base/task_runner_util.h" |
14 #include "base/threading/thread.h" | 16 #include "base/threading/thread.h" |
15 #include "base/threading/thread_restrictions.h" | 17 #include "base/threading/thread_restrictions.h" |
16 #include "dbus/dbus_statistics.h" | 18 #include "dbus/dbus_statistics.h" |
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 bool service_is_available) { | 702 bool service_is_available) { |
701 bus_->AssertOnOriginThread(); | 703 bus_->AssertOnOriginThread(); |
702 | 704 |
703 std::vector<WaitForServiceToBeAvailableCallback> callbacks; | 705 std::vector<WaitForServiceToBeAvailableCallback> callbacks; |
704 callbacks.swap(wait_for_service_to_be_available_callbacks_); | 706 callbacks.swap(wait_for_service_to_be_available_callbacks_); |
705 for (size_t i = 0; i < callbacks.size(); ++i) | 707 for (size_t i = 0; i < callbacks.size(); ++i) |
706 callbacks[i].Run(service_is_available); | 708 callbacks[i].Run(service_is_available); |
707 } | 709 } |
708 | 710 |
709 } // namespace dbus | 711 } // namespace dbus |
OLD | NEW |