Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(538)

Side by Side Diff: components/arc/net/arc_net_host_impl.h

Issue 1751793002: ARC: Remove error status setting in GetNetworks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added enum instead of booleans for GetNetworks. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 15 matching lines...) Expand all
26 class ArcNetHostImpl : public ArcService, 26 class ArcNetHostImpl : public ArcService,
27 public ArcBridgeService::Observer, 27 public ArcBridgeService::Observer,
28 public chromeos::NetworkStateHandlerObserver, 28 public chromeos::NetworkStateHandlerObserver,
29 public NetHost { 29 public NetHost {
30 public: 30 public:
31 // The constructor will register an Observer with ArcBridgeService. 31 // The constructor will register an Observer with ArcBridgeService.
32 explicit ArcNetHostImpl(ArcBridgeService* arc_bridge_service); 32 explicit ArcNetHostImpl(ArcBridgeService* arc_bridge_service);
33 ~ArcNetHostImpl() override; 33 ~ArcNetHostImpl() override;
34 34
35 // Called when a GetNetworks call is sent from ARC. 35 // Called when a GetNetworks call is sent from ARC.
36 void GetNetworks(bool configured_only, 36 void GetNetworksDeprecated(
37 bool visible_only, 37 bool configured_only,
38 bool visible_only,
39 const GetNetworksDeprecatedCallback& callback) override;
40
41 // Called when a GetNetworks call is sent from ARC.
42 void GetNetworks(GetNetworksRequestType type,
38 const GetNetworksCallback& callback) override; 43 const GetNetworksCallback& callback) override;
39 44
40 // Called when a GetWifiEnabledState call is sent from ARC. 45 // Called when a GetWifiEnabledState call is sent from ARC.
41 void GetWifiEnabledState( 46 void GetWifiEnabledState(
42 const GetWifiEnabledStateCallback& callback) override; 47 const GetWifiEnabledStateCallback& callback) override;
43 48
44 // Called when a StartScan call is sent from ARC. 49 // Called when a StartScan call is sent from ARC.
45 void StartScan() override; 50 void StartScan() override;
46 51
47 // Overriden from chromeos::NetworkStateHandlerObserver. 52 // Overriden from chromeos::NetworkStateHandlerObserver.
48 void ScanCompleted(const chromeos::DeviceState* /*unused*/) override; 53 void ScanCompleted(const chromeos::DeviceState* /*unused*/) override;
49 54
50 // Overriden from chromeos::NetworkStateHandlerObserver. 55 // Overriden from chromeos::NetworkStateHandlerObserver.
51 void OnShuttingDown() override; 56 void OnShuttingDown() override;
52 57
53 // Overridden from ArcBridgeService::Observer: 58 // Overridden from ArcBridgeService::Observer:
54 void OnNetInstanceReady() override; 59 void OnNetInstanceReady() override;
55 60
56 private: 61 private:
57 base::ThreadChecker thread_checker_; 62 base::ThreadChecker thread_checker_;
58 mojo::Binding<arc::NetHost> binding_; 63 mojo::Binding<arc::NetHost> binding_;
59 64
60 DISALLOW_COPY_AND_ASSIGN(ArcNetHostImpl); 65 DISALLOW_COPY_AND_ASSIGN(ArcNetHostImpl);
61 }; 66 };
62 67
63 } // namespace arc 68 } // namespace arc
64 69
65 #endif // COMPONENTS_ARC_NET_ARC_NET_HOST_IMPL_H_ 70 #endif // COMPONENTS_ARC_NET_ARC_NET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698