OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/fake_shill_device_client.h" | 5 #include "chromeos/dbus/fake_shill_device_client.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
12 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
13 #include "base/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "chromeos/dbus/dbus_thread_manager.h" | 15 #include "chromeos/dbus/dbus_thread_manager.h" |
16 #include "chromeos/dbus/shill_manager_client.h" | 16 #include "chromeos/dbus/shill_manager_client.h" |
17 #include "chromeos/dbus/shill_property_changed_observer.h" | 17 #include "chromeos/dbus/shill_property_changed_observer.h" |
18 #include "dbus/bus.h" | 18 #include "dbus/bus.h" |
19 #include "dbus/message.h" | 19 #include "dbus/message.h" |
20 #include "dbus/object_path.h" | 20 #include "dbus/object_path.h" |
21 #include "dbus/object_proxy.h" | 21 #include "dbus/object_proxy.h" |
22 #include "dbus/values_util.h" | 22 #include "dbus/values_util.h" |
23 #include "net/base/ip_endpoint.h" | 23 #include "net/base/ip_endpoint.h" |
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 std::map<dbus::ObjectPath, PropertyObserverList*>::iterator iter = | 627 std::map<dbus::ObjectPath, PropertyObserverList*>::iterator iter = |
628 observer_list_.find(device_path); | 628 observer_list_.find(device_path); |
629 if (iter != observer_list_.end()) | 629 if (iter != observer_list_.end()) |
630 return *(iter->second); | 630 return *(iter->second); |
631 PropertyObserverList* observer_list = new PropertyObserverList(); | 631 PropertyObserverList* observer_list = new PropertyObserverList(); |
632 observer_list_[device_path] = observer_list; | 632 observer_list_[device_path] = observer_list; |
633 return *observer_list; | 633 return *observer_list; |
634 } | 634 } |
635 | 635 |
636 } // namespace chromeos | 636 } // namespace chromeos |
OLD | NEW |