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

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

Issue 2781263004: HostScanner: Add scanned hosts to NetworkStateHandler and NotificationPresenter. (Closed)
Patch Set: Address nits. Created 3 years, 8 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/host_scanner.h
diff --git a/chromeos/components/tether/host_scanner.h b/chromeos/components/tether/host_scanner.h
index c21a196473c7abac1f0942f74986100095cf27c9..e2a3e94bb74acaab1f0f40d63f89f5abfdeaae92 100644
--- a/chromeos/components/tether/host_scanner.h
+++ b/chromeos/components/tether/host_scanner.h
@@ -9,6 +9,8 @@
#include "base/memory/weak_ptr.h"
#include "chromeos/components/tether/host_scanner_operation.h"
+#include "chromeos/components/tether/notification_presenter.h"
+#include "chromeos/network/network_state_handler.h"
#include "components/cryptauth/remote_device.h"
namespace chromeos {
@@ -28,7 +30,9 @@ class HostScanner : public HostScannerOperation::Observer {
public:
HostScanner(TetherHostFetcher* tether_host_fetcher,
BleConnectionManager* connection_manager,
- HostScanDevicePrioritizer* host_scan_device_prioritizer);
+ HostScanDevicePrioritizer* host_scan_device_prioritizer,
+ NetworkStateHandler* network_state_handler,
+ NotificationPresenter* notification_presenter);
virtual ~HostScanner();
// Starts a host scan if there is no current scan. If a scan is ongoing, this
@@ -56,6 +60,8 @@ class HostScanner : public HostScannerOperation::Observer {
TetherHostFetcher* tether_host_fetcher_;
BleConnectionManager* connection_manager_;
HostScanDevicePrioritizer* host_scan_device_prioritizer_;
+ NetworkStateHandler* network_state_handler_;
+ NotificationPresenter* notification_presenter_;
bool is_fetching_hosts_;
std::unique_ptr<HostScannerOperation> host_scanner_operation_;
« no previous file with comments | « chromeos/components/tether/host_scan_scheduler_unittest.cc ('k') | chromeos/components/tether/host_scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698