OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/auto_connect_handler.h" | 5 #include "chromeos/network/auto_connect_handler.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/message_loop/message_loop_proxy.h" | 12 #include "base/message_loop/message_loop_proxy.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "chromeos/dbus/dbus_thread_manager.h" | 14 #include "chromeos/dbus/dbus_thread_manager.h" |
15 #include "chromeos/dbus/shill_manager_client.h" | 15 #include "chromeos/dbus/shill_manager_client.h" |
16 #include "chromeos/dbus/shill_service_client.h" | 16 #include "chromeos/dbus/shill_service_client.h" |
17 #include "chromeos/network/device_state.h" | 17 #include "chromeos/network/device_state.h" |
18 #include "chromeos/network/managed_network_configuration_handler.h" | 18 #include "chromeos/network/managed_network_configuration_handler.h" |
| 19 #include "chromeos/network/network_connection_handler.h" |
19 #include "chromeos/network/network_event_log.h" | 20 #include "chromeos/network/network_event_log.h" |
20 #include "chromeos/network/network_state.h" | 21 #include "chromeos/network/network_state.h" |
21 #include "chromeos/network/network_type_pattern.h" | 22 #include "chromeos/network/network_type_pattern.h" |
22 #include "dbus/object_path.h" | 23 #include "dbus/object_path.h" |
23 #include "third_party/cros_system_api/dbus/service_constants.h" | 24 #include "third_party/cros_system_api/dbus/service_constants.h" |
24 | 25 |
25 namespace chromeos { | 26 namespace chromeos { |
26 | 27 |
27 AutoConnectHandler::AutoConnectHandler() | 28 AutoConnectHandler::AutoConnectHandler() |
28 : client_cert_resolver_(nullptr), | 29 : client_cert_resolver_(nullptr), |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 void AutoConnectHandler::CallShillConnectToBestServices() const { | 247 void AutoConnectHandler::CallShillConnectToBestServices() const { |
247 NET_LOG_EVENT("ConnectToBestServices", ""); | 248 NET_LOG_EVENT("ConnectToBestServices", ""); |
248 DBusThreadManager::Get()->GetShillManagerClient()->ConnectToBestServices( | 249 DBusThreadManager::Get()->GetShillManagerClient()->ConnectToBestServices( |
249 base::Bind(&base::DoNothing), | 250 base::Bind(&base::DoNothing), |
250 base::Bind(&network_handler::ShillErrorCallbackFunction, | 251 base::Bind(&network_handler::ShillErrorCallbackFunction, |
251 "ConnectToBestServices Failed", | 252 "ConnectToBestServices Failed", |
252 "", network_handler::ErrorCallback())); | 253 "", network_handler::ErrorCallback())); |
253 } | 254 } |
254 | 255 |
255 } // namespace chromeos | 256 } // namespace chromeos |
OLD | NEW |