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 "extensions/browser/api/networking_private/networking_private_chromeos.
h" | 5 #include "extensions/browser/api/networking_private/networking_private_chromeos.
h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "chromeos/dbus/dbus_thread_manager.h" | 10 #include "chromeos/dbus/dbus_thread_manager.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "extensions/browser/api/networking_private/networking_private_api.h" | 28 #include "extensions/browser/api/networking_private/networking_private_api.h" |
29 #include "extensions/browser/extensions_browser_client.h" | 29 #include "extensions/browser/extensions_browser_client.h" |
30 | 30 |
31 using chromeos::DeviceState; | 31 using chromeos::DeviceState; |
32 using chromeos::NetworkHandler; | 32 using chromeos::NetworkHandler; |
33 using chromeos::NetworkStateHandler; | 33 using chromeos::NetworkStateHandler; |
34 using chromeos::NetworkTypePattern; | 34 using chromeos::NetworkTypePattern; |
35 using chromeos::ShillManagerClient; | 35 using chromeos::ShillManagerClient; |
36 using extensions::NetworkingPrivateDelegate; | 36 using extensions::NetworkingPrivateDelegate; |
37 | 37 |
38 namespace private_api = extensions::core_api::networking_private; | 38 namespace private_api = extensions::api::networking_private; |
39 | 39 |
40 namespace { | 40 namespace { |
41 | 41 |
42 chromeos::NetworkStateHandler* GetStateHandler() { | 42 chromeos::NetworkStateHandler* GetStateHandler() { |
43 return NetworkHandler::Get()->network_state_handler(); | 43 return NetworkHandler::Get()->network_state_handler(); |
44 } | 44 } |
45 | 45 |
46 chromeos::ManagedNetworkConfigurationHandler* GetManagedConfigurationHandler() { | 46 chromeos::ManagedNetworkConfigurationHandler* GetManagedConfigurationHandler() { |
47 return NetworkHandler::Get()->managed_network_configuration_handler(); | 47 return NetworkHandler::Get()->managed_network_configuration_handler(); |
48 } | 48 } |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 | 426 |
427 return true; | 427 return true; |
428 } | 428 } |
429 | 429 |
430 bool NetworkingPrivateChromeOS::RequestScan() { | 430 bool NetworkingPrivateChromeOS::RequestScan() { |
431 GetStateHandler()->RequestScan(); | 431 GetStateHandler()->RequestScan(); |
432 return true; | 432 return true; |
433 } | 433 } |
434 | 434 |
435 } // namespace extensions | 435 } // namespace extensions |
OLD | NEW |