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

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

Issue 2945643002: [CrOS Tether] Sort Tether network lists. (Closed)
Patch Set: stevenjb@ comments. Created 3 years, 6 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 | « chromeos/components/tether/BUILD.gn ('k') | chromeos/components/tether/host_scan_device_prioritizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/components/tether/host_scan_device_prioritizer.h
diff --git a/chromeos/components/tether/host_scan_device_prioritizer.h b/chromeos/components/tether/host_scan_device_prioritizer.h
index 43997e45572793765463c0f219f7dff873b5a5fa..eedcb6416197f48d0c47ad0aba6624b501dd65af 100644
--- a/chromeos/components/tether/host_scan_device_prioritizer.h
+++ b/chromeos/components/tether/host_scan_device_prioritizer.h
@@ -12,8 +12,6 @@ namespace chromeos {
namespace tether {
-class TetherHostResponseRecorder;
-
// Prioritizes the order of devices when performing a host scan. To optimize for
// the most common tethering operations, this class uses the following rules:
// * The device which has most recently sent a successful
@@ -24,17 +22,14 @@ class TetherHostResponseRecorder;
// * All other devices are left in the order they are passed.
class HostScanDevicePrioritizer {
public:
- HostScanDevicePrioritizer(
- TetherHostResponseRecorder* tether_host_response_recorder);
- virtual ~HostScanDevicePrioritizer();
+ HostScanDevicePrioritizer() {}
+ virtual ~HostScanDevicePrioritizer() {}
// Prioritizes |remote_devices| using the rules described above.
virtual void SortByHostScanOrder(
- std::vector<cryptauth::RemoteDevice>* remote_devices) const;
+ std::vector<cryptauth::RemoteDevice>* remote_devices) const = 0;
private:
- TetherHostResponseRecorder* tether_host_response_recorder_;
-
DISALLOW_COPY_AND_ASSIGN(HostScanDevicePrioritizer);
};
« no previous file with comments | « chromeos/components/tether/BUILD.gn ('k') | chromeos/components/tether/host_scan_device_prioritizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698