| 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/network/network_device_handler_impl.h" | 5 #include "chromeos/network/network_device_handler_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/message_loop/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
| 10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| 11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "chromeos/dbus/dbus_thread_manager.h" | 13 #include "chromeos/dbus/dbus_thread_manager.h" |
| 14 #include "chromeos/dbus/shill_device_client.h" | 14 #include "chromeos/dbus/shill_device_client.h" |
| 15 #include "chromeos/dbus/shill_ipconfig_client.h" | 15 #include "chromeos/dbus/shill_ipconfig_client.h" |
| 16 #include "chromeos/network/device_state.h" | 16 #include "chromeos/network/device_state.h" |
| 17 #include "chromeos/network/network_handler_callbacks.h" | |
| 18 #include "chromeos/network/network_state_handler.h" | 17 #include "chromeos/network/network_state_handler.h" |
| 19 #include "components/device_event_log/device_event_log.h" | 18 #include "components/device_event_log/device_event_log.h" |
| 20 #include "dbus/object_path.h" | 19 #include "dbus/object_path.h" |
| 21 #include "third_party/cros_system_api/dbus/service_constants.h" | 20 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 22 | 21 |
| 23 namespace chromeos { | 22 namespace chromeos { |
| 24 | 23 |
| 25 namespace { | 24 namespace { |
| 26 | 25 |
| 27 std::string GetErrorNameForShillError(const std::string& shill_error_name) { | 26 std::string GetErrorNameForShillError(const std::string& shill_error_name) { |
| (...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 scoped_ptr<base::DictionaryValue> error_data(new base::DictionaryValue); | 558 scoped_ptr<base::DictionaryValue> error_data(new base::DictionaryValue); |
| 560 error_data->SetString(network_handler::kErrorName, kErrorDeviceMissing); | 559 error_data->SetString(network_handler::kErrorName, kErrorDeviceMissing); |
| 561 error_callback.Run(kErrorDeviceMissing, error_data.Pass()); | 560 error_callback.Run(kErrorDeviceMissing, error_data.Pass()); |
| 562 return NULL; | 561 return NULL; |
| 563 } | 562 } |
| 564 | 563 |
| 565 return device_state; | 564 return device_state; |
| 566 } | 565 } |
| 567 | 566 |
| 568 } // namespace chromeos | 567 } // namespace chromeos |
| OLD | NEW |