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

Unified 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: forward-declare base::DictionaryValue 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/arc/common/net.mojom ('k') | components/arc/net/arc_net_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « components/arc/common/net.mojom ('k') | components/arc/net/arc_net_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698