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 21 matching lines...) Expand all Loading... |
32 | 32 |
33 // Called when a GetNetworks call is sent from ARC. | 33 // Called when a GetNetworks call is sent from ARC. |
34 void GetNetworks(bool configured_only, | 34 void GetNetworks(bool configured_only, |
35 bool visible_only, | 35 bool visible_only, |
36 const GetNetworksCallback& callback) override; | 36 const GetNetworksCallback& callback) override; |
37 | 37 |
38 // Called when a GetWifiEnabledState call is sent from ARC. | 38 // Called when a GetWifiEnabledState call is sent from ARC. |
39 void GetWifiEnabledState( | 39 void GetWifiEnabledState( |
40 const GetWifiEnabledStateCallback& callback) override; | 40 const GetWifiEnabledStateCallback& callback) override; |
41 | 41 |
| 42 // Called when a StartScan call is sent from ARC. |
| 43 void StartScan() override; |
| 44 |
42 // Overridden from ArcBridgeService::Observer: | 45 // Overridden from ArcBridgeService::Observer: |
43 void OnNetInstanceReady() override; | 46 void OnNetInstanceReady() override; |
44 | 47 |
45 private: | 48 private: |
46 base::ThreadChecker thread_checker_; | 49 base::ThreadChecker thread_checker_; |
47 mojo::Binding<arc::NetHost> binding_; | 50 mojo::Binding<arc::NetHost> binding_; |
48 | 51 |
49 DISALLOW_COPY_AND_ASSIGN(ArcNetHostImpl); | 52 DISALLOW_COPY_AND_ASSIGN(ArcNetHostImpl); |
50 }; | 53 }; |
51 | 54 |
52 } // namespace arc | 55 } // namespace arc |
53 | 56 |
54 #endif // COMPONENTS_ARC_NET_ARC_NET_HOST_IMPL_H_ | 57 #endif // COMPONENTS_ARC_NET_ARC_NET_HOST_IMPL_H_ |
OLD | NEW |