| 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 "chromeos/dbus/shill_client_helper.h" | 5 #include "chromeos/dbus/shill_client_helper.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
| 11 #include "base/location.h" | 11 #include "base/location.h" |
| 12 #include "base/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
| 13 #include "components/device_event_log/device_event_log.h" | 13 #include "components/device_event_log/device_event_log.h" |
| 14 #include "dbus/message.h" | 14 #include "dbus/message.h" |
| 15 #include "dbus/object_proxy.h" | 15 #include "dbus/object_proxy.h" |
| 16 #include "dbus/values_util.h" | 16 #include "dbus/values_util.h" |
| 17 #include "third_party/cros_system_api/dbus/service_constants.h" | 17 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 18 | 18 |
| 19 namespace chromeos { | 19 namespace chromeos { |
| 20 | 20 |
| 21 // Class to hold onto a reference to a ShillClientHelper. This calss | 21 // Class to hold onto a reference to a ShillClientHelper. This calss |
| 22 // is owned by callbacks and released once the callback completes. | 22 // is owned by callbacks and released once the callback completes. |
| (...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 return; | 545 return; |
| 546 std::unique_ptr<base::Value> value(dbus::PopDataAsValue(&reader)); | 546 std::unique_ptr<base::Value> value(dbus::PopDataAsValue(&reader)); |
| 547 if (!value.get()) | 547 if (!value.get()) |
| 548 return; | 548 return; |
| 549 | 549 |
| 550 FOR_EACH_OBSERVER(ShillPropertyChangedObserver, observer_list_, | 550 FOR_EACH_OBSERVER(ShillPropertyChangedObserver, observer_list_, |
| 551 OnPropertyChanged(name, *value)); | 551 OnPropertyChanged(name, *value)); |
| 552 } | 552 } |
| 553 | 553 |
| 554 } // namespace chromeos | 554 } // namespace chromeos |
| OLD | NEW |