Index: components/arc/net/arc_net_host_impl.h |
diff --git a/components/arc/net/arc_net_host_impl.h b/components/arc/net/arc_net_host_impl.h |
index af5df412b62de3aec91267505796c475ea05f4bb..267d2f3518915442de891cfb1278fa6276318870 100644 |
--- a/components/arc/net/arc_net_host_impl.h |
+++ b/components/arc/net/arc_net_host_impl.h |
@@ -11,7 +11,9 @@ |
#include "base/files/scoped_file.h" |
#include "base/macros.h" |
+#include "base/memory/weak_ptr.h" |
#include "base/threading/thread_checker.h" |
+#include "base/values.h" |
stevenjb
2016/05/18 23:28:06
Instead forward declare DictionaryValue
Kevin Cernekee
2016/05/18 23:39:30
Done.
|
#include "chromeos/network/network_state_handler_observer.h" |
#include "components/arc/arc_bridge_service.h" |
#include "components/arc/arc_service.h" |
@@ -66,13 +68,18 @@ class ArcNetHostImpl : public ArcService, |
// Overriden from chromeos::NetworkStateHandlerObserver. |
void ScanCompleted(const chromeos::DeviceState* /*unused*/) override; |
void OnShuttingDown() override; |
+ void DefaultNetworkChanged(const chromeos::NetworkState* network) override; |
+ void GetDefaultNetwork(const GetDefaultNetworkCallback& callback) override; |
// Overridden from ArcBridgeService::Observer: |
void OnNetInstanceReady() override; |
private: |
+ void DefaultNetworkSuccessCallback(const std::string& service_path, |
+ const base::DictionaryValue& dictionary); |
base::ThreadChecker thread_checker_; |
mojo::Binding<arc::mojom::NetHost> binding_; |
+ base::WeakPtrFactory<ArcNetHostImpl> weak_factory_; |
DISALLOW_COPY_AND_ASSIGN(ArcNetHostImpl); |
}; |