| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/arc/net/arc_net_host_impl.h" | 5 #include "components/arc/net/arc_net_host_impl.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/posix/eintr_wrapper.h" | 11 #include "base/posix/eintr_wrapper.h" |
| 12 #include "base/thread_task_runner_handle.h" | 12 #include "base/thread_task_runner_handle.h" |
| 13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 14 #include "chromeos/network/network_handler.h" | 14 #include "chromeos/network/network_handler.h" |
| 15 #include "chromeos/network/network_state_handler.h" | 15 #include "chromeos/network/network_state_handler.h" |
| 16 #include "chromeos/network/network_util.h" | 16 #include "chromeos/network/network_util.h" |
| 17 #include "chromeos/network/onc/onc_utils.h" | 17 #include "chromeos/network/onc/onc_utils.h" |
| 18 #include "components/arc/arc_bridge_service.h" | 18 #include "components/arc/arc_bridge_service.h" |
| 19 #include "third_party/mojo/src/mojo/edk/embedder/embedder.h" | |
| 20 | 19 |
| 21 namespace { | 20 namespace { |
| 22 | 21 |
| 23 const int kGetNetworksListLimit = 100; | 22 const int kGetNetworksListLimit = 100; |
| 24 | 23 |
| 25 } // namespace | 24 } // namespace |
| 26 | 25 |
| 27 namespace arc { | 26 namespace arc { |
| 28 | 27 |
| 29 ArcNetHostImpl::ArcNetHostImpl(ArcBridgeService* bridge_service) | 28 ArcNetHostImpl::ArcNetHostImpl(ArcBridgeService* bridge_service) |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 const GetWifiEnabledStateCallback& callback) { | 101 const GetWifiEnabledStateCallback& callback) { |
| 103 chromeos::NetworkStateHandler* handler = | 102 chromeos::NetworkStateHandler* handler = |
| 104 chromeos::NetworkHandler::Get()->network_state_handler(); | 103 chromeos::NetworkHandler::Get()->network_state_handler(); |
| 105 bool is_enabled = | 104 bool is_enabled = |
| 106 handler->IsTechnologyEnabled(chromeos::NetworkTypePattern::WiFi()); | 105 handler->IsTechnologyEnabled(chromeos::NetworkTypePattern::WiFi()); |
| 107 | 106 |
| 108 callback.Run(is_enabled); | 107 callback.Run(is_enabled); |
| 109 } | 108 } |
| 110 | 109 |
| 111 } // namespace arc | 110 } // namespace arc |
| OLD | NEW |