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

Unified Diff: components/password_manager/core/browser/facet_manager_host.h

Issue 947563002: Add prefetch support to AffiliationBackend. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove 'stale' accessor, cleaned up timelines for tests, extended/fixed some tests. Created 5 years, 9 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/password_manager/core/browser/facet_manager_host.h
diff --git a/components/password_manager/core/browser/facet_manager_host.h b/components/password_manager/core/browser/facet_manager_host.h
index d6122a9dfbdaa570a32a0d6ede30d8d6a9ccf04a..949616f36d1f41b0d12ccc7a3a687d7c56ab8e78 100644
--- a/components/password_manager/core/browser/facet_manager_host.h
+++ b/components/password_manager/core/browser/facet_manager_host.h
@@ -15,16 +15,6 @@ class FacetManagerHost {
public:
virtual ~FacetManagerHost() {}
- // Gets the current time. The returned time will always be strictly greater
- // than the NULL time.
- virtual base::Time GetCurrentTime() = 0;
-
- // Reads and returns the last update time of the equivalence class containing
- // |facet_uri| from the database, or, if no such equivalence class is stored,
- // returns the NULL time.
- virtual base::Time ReadLastUpdateTimeFromDatabase(
- const FacetURI& facet_uri) = 0;
-
// Reads the equivalence class containing |facet_uri| from the database and
// returns true if found; returns false otherwise.
virtual bool ReadAffiliationsFromDatabase(
@@ -34,6 +24,11 @@ class FacetManagerHost {
// Signals the fetching logic that affiliation information for a facet needs
// to be fetched immediately.
virtual void SignalNeedNetworkRequest() = 0;
+
+ // Requests that the FacetManager corresponding to |facet_uri| be notified at
+ // the specified |time| so it can perform delayed administrative tasks.
+ virtual void RequestNotificationAtTime(const FacetURI& facet_uri,
+ base::Time time) = 0;
};
} // namespace password_manager

Powered by Google App Engine
This is Rietveld 408576698