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

Unified Diff: chromeos/components/tether/initializer.h

Issue 2870393003: Tether: only scan when asked to by NetworkStateHandler. (Closed)
Patch Set: Remove PowerManagerClient callbacks and implement all NetworkStateHandler callbacks. Created 3 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
Index: chromeos/components/tether/initializer.h
diff --git a/chromeos/components/tether/initializer.h b/chromeos/components/tether/initializer.h
index 7ec649384633569a2603e68ef8526d20fd1b738e..ef17a1a0570f4d31fcb97f2c3d09859ad0c6e90a 100644
--- a/chromeos/components/tether/initializer.h
+++ b/chromeos/components/tether/initializer.h
@@ -11,6 +11,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
+#include "base/time/default_clock.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/signin/core/browser/profile_oauth2_token_service.h"
#include "device/bluetooth/bluetooth_adapter.h"
@@ -39,6 +40,7 @@ class NetworkConnectionHandlerTetherDelegate;
class DeviceIdTetherNetworkGuidMap;
class HostScanCache;
class HostScanner;
+class HostScanScheduler;
class HostScanDevicePrioritizer;
class LocalDeviceDataProvider;
class NetworkConfigurationRemover;
@@ -130,7 +132,9 @@ class Initializer : public OAuth2TokenService::Observer {
std::unique_ptr<TetherNetworkDisconnectionHandler>
tether_network_disconnection_handler_;
std::unique_ptr<HostScanCache> host_scan_cache_;
+ std::unique_ptr<base::DefaultClock> clock_;
std::unique_ptr<HostScanner> host_scanner_;
+ std::unique_ptr<HostScanScheduler> host_scan_scheduler_;
base::WeakPtrFactory<Initializer> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698