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