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..7d14876cead61db875925c10edc02fde7e20b235 100644 |
--- a/components/arc/net/arc_net_host_impl.h |
+++ b/components/arc/net/arc_net_host_impl.h |
@@ -11,6 +11,7 @@ |
#include "base/files/scoped_file.h" |
#include "base/macros.h" |
+#include "base/memory/weak_ptr.h" |
#include "base/threading/thread_checker.h" |
#include "chromeos/network/network_state_handler_observer.h" |
#include "components/arc/arc_bridge_service.h" |
@@ -18,6 +19,12 @@ |
#include "components/arc/common/net.mojom.h" |
#include "mojo/public/cpp/bindings/binding.h" |
+namespace base { |
+ |
+class DictionaryValue; |
+ |
+} // namespace base |
+ |
namespace arc { |
class ArcBridgeService; |
@@ -66,13 +73,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); |
}; |