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

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

Issue 1925083003: Notify ARC of default network changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wifi-change
Patch Set: move helpers to anonymous namespace Created 4 years, 7 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 void StartConnect(const mojo::String& guid, 60 void StartConnect(const mojo::String& guid,
61 const StartConnectCallback& callback) override; 61 const StartConnectCallback& callback) override;
62 62
63 void StartDisconnect(const mojo::String& guid, 63 void StartDisconnect(const mojo::String& guid,
64 const StartDisconnectCallback& callback) override; 64 const StartDisconnectCallback& callback) override;
65 65
66 // Overriden from chromeos::NetworkStateHandlerObserver. 66 // Overriden from chromeos::NetworkStateHandlerObserver.
67 void ScanCompleted(const chromeos::DeviceState* /*unused*/) override; 67 void ScanCompleted(const chromeos::DeviceState* /*unused*/) override;
68 void OnShuttingDown() override; 68 void OnShuttingDown() override;
69 void DefaultNetworkChanged(const chromeos::NetworkState* network) override;
70 void GetDefaultNetwork(const GetDefaultNetworkCallback& callback) override;
69 71
70 // Overridden from ArcBridgeService::Observer: 72 // Overridden from ArcBridgeService::Observer:
71 void OnNetInstanceReady() override; 73 void OnNetInstanceReady() override;
72 74
73 private: 75 private:
74 base::ThreadChecker thread_checker_; 76 base::ThreadChecker thread_checker_;
75 mojo::Binding<arc::mojom::NetHost> binding_; 77 mojo::Binding<arc::mojom::NetHost> binding_;
76 78
77 DISALLOW_COPY_AND_ASSIGN(ArcNetHostImpl); 79 DISALLOW_COPY_AND_ASSIGN(ArcNetHostImpl);
78 }; 80 };
79 81
80 } // namespace arc 82 } // namespace arc
81 83
82 #endif // COMPONENTS_ARC_NET_ARC_NET_HOST_IMPL_H_ 84 #endif // COMPONENTS_ARC_NET_ARC_NET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698