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 #ifndef COMPONENTS_ARC_NET_ARC_NET_HOST_IMPL_H_ | 5 #ifndef COMPONENTS_ARC_NET_ARC_NET_HOST_IMPL_H_ |
6 #define COMPONENTS_ARC_NET_ARC_NET_HOST_IMPL_H_ | 6 #define COMPONENTS_ARC_NET_ARC_NET_HOST_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 28 matching lines...) Expand all Loading... |
39 const GetNetworksDeprecatedCallback& callback) override; | 39 const GetNetworksDeprecatedCallback& callback) override; |
40 | 40 |
41 // Called when a GetNetworks call is sent from ARC. | 41 // Called when a GetNetworks call is sent from ARC. |
42 void GetNetworks(GetNetworksRequestType type, | 42 void GetNetworks(GetNetworksRequestType type, |
43 const GetNetworksCallback& callback) override; | 43 const GetNetworksCallback& callback) override; |
44 | 44 |
45 // Called when a GetWifiEnabledState call is sent from ARC. | 45 // Called when a GetWifiEnabledState call is sent from ARC. |
46 void GetWifiEnabledState( | 46 void GetWifiEnabledState( |
47 const GetWifiEnabledStateCallback& callback) override; | 47 const GetWifiEnabledStateCallback& callback) override; |
48 | 48 |
| 49 // Called when a SetWifiEnabledState call is sent from ARC. |
| 50 void SetWifiEnabledState( |
| 51 bool is_enabled, |
| 52 const SetWifiEnabledStateCallback& callback) override; |
| 53 |
49 // Called when a StartScan call is sent from ARC. | 54 // Called when a StartScan call is sent from ARC. |
50 void StartScan() override; | 55 void StartScan() override; |
51 | 56 |
52 // Overriden from chromeos::NetworkStateHandlerObserver. | 57 // Overriden from chromeos::NetworkStateHandlerObserver. |
53 void ScanCompleted(const chromeos::DeviceState* /*unused*/) override; | 58 void ScanCompleted(const chromeos::DeviceState* /*unused*/) override; |
54 | 59 |
55 // Overriden from chromeos::NetworkStateHandlerObserver. | 60 // Overriden from chromeos::NetworkStateHandlerObserver. |
56 void OnShuttingDown() override; | 61 void OnShuttingDown() override; |
57 | 62 |
58 // Overridden from ArcBridgeService::Observer: | 63 // Overridden from ArcBridgeService::Observer: |
59 void OnNetInstanceReady() override; | 64 void OnNetInstanceReady() override; |
60 | 65 |
61 private: | 66 private: |
62 base::ThreadChecker thread_checker_; | 67 base::ThreadChecker thread_checker_; |
63 mojo::Binding<arc::NetHost> binding_; | 68 mojo::Binding<arc::NetHost> binding_; |
64 | 69 |
65 DISALLOW_COPY_AND_ASSIGN(ArcNetHostImpl); | 70 DISALLOW_COPY_AND_ASSIGN(ArcNetHostImpl); |
66 }; | 71 }; |
67 | 72 |
68 } // namespace arc | 73 } // namespace arc |
69 | 74 |
70 #endif // COMPONENTS_ARC_NET_ARC_NET_HOST_IMPL_H_ | 75 #endif // COMPONENTS_ARC_NET_ARC_NET_HOST_IMPL_H_ |
OLD | NEW |