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

Unified Diff: components/proximity_auth/proximity_monitor.h

Issue 1372283002: Hook up ProximityAuthSystem in EasyUnlockService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth_connection
Patch Set: remove log Created 5 years, 3 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: components/proximity_auth/proximity_monitor.h
diff --git a/components/proximity_auth/proximity_monitor.h b/components/proximity_auth/proximity_monitor.h
index b3c6bd20c971809b75e2276d27e253bfbba7b2c7..b2978bf170d3ad8a792b766fab62ae155f78aec6 100644
--- a/components/proximity_auth/proximity_monitor.h
+++ b/components/proximity_auth/proximity_monitor.h
@@ -5,6 +5,8 @@
#ifndef COMPONENTS_PROXIMITY_AUTH_PROXIMITY_MONITOR_H
#define COMPONENTS_PROXIMITY_AUTH_PROXIMITY_MONITOR_H
+#include "components/proximity_auth/proximity_monitor_observer.h"
+
namespace proximity_auth {
// An interface that is responsible for tracking whether the remote device is
@@ -38,6 +40,12 @@ class ProximityMonitor {
// Records the current proximity measurements to UMA. This should be called
// when the user successfully authenticates using proximity auth.
virtual void RecordProximityMetricsOnAuthSuccess() = 0;
+
+ // Adds an observer.
+ virtual void AddObserver(ProximityMonitorObserver* observer) = 0;
+
+ // Removes an observer.
+ virtual void RemoveObserver(ProximityMonitorObserver* observer) = 0;
};
} // namespace proximity_auth
« no previous file with comments | « components/proximity_auth/proximity_auth_system_unittest.cc ('k') | components/proximity_auth/proximity_monitor_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698