| 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 "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
| 9 #include "base/values.h" | |
| 10 #include "components/device_event_log/device_event_log.h" | 9 #include "components/device_event_log/device_event_log.h" |
| 11 #include "dbus/message.h" | 10 #include "dbus/message.h" |
| 12 #include "dbus/object_proxy.h" | 11 #include "dbus/object_proxy.h" |
| 13 #include "dbus/values_util.h" | 12 #include "dbus/values_util.h" |
| 14 #include "third_party/cros_system_api/dbus/service_constants.h" | 13 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 15 | 14 |
| 16 namespace chromeos { | 15 namespace chromeos { |
| 17 | 16 |
| 18 // Class to hold onto a reference to a ShillClientHelper. This calss | 17 // Class to hold onto a reference to a ShillClientHelper. This calss |
| 19 // is owned by callbacks and released once the callback completes. | 18 // is owned by callbacks and released once the callback completes. |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 return; | 534 return; |
| 536 scoped_ptr<base::Value> value(dbus::PopDataAsValue(&reader)); | 535 scoped_ptr<base::Value> value(dbus::PopDataAsValue(&reader)); |
| 537 if (!value.get()) | 536 if (!value.get()) |
| 538 return; | 537 return; |
| 539 | 538 |
| 540 FOR_EACH_OBSERVER(ShillPropertyChangedObserver, observer_list_, | 539 FOR_EACH_OBSERVER(ShillPropertyChangedObserver, observer_list_, |
| 541 OnPropertyChanged(name, *value)); | 540 OnPropertyChanged(name, *value)); |
| 542 } | 541 } |
| 543 | 542 |
| 544 } // namespace chromeos | 543 } // namespace chromeos |
| OLD | NEW |