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

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

Issue 2953443002: Revert of Reland: Move the files related to Android <-> Web credentials to a separate folder. (Closed)
Patch Set: 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
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
new file mode 100644
index 0000000000000000000000000000000000000000..949616f36d1f41b0d12ccc7a3a687d7c56ab8e78
--- /dev/null
+++ b/components/password_manager/core/browser/facet_manager_host.h
@@ -0,0 +1,36 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_FACET_MANAGER_HOST_H_
+#define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_FACET_MANAGER_HOST_H_
+
+#include "base/macros.h"
+
+namespace password_manager {
+
+// Interface through which FacetManagers can access shared functionality
+// provided by the AffiliationBackend.
+class FacetManagerHost {
+ public:
+ virtual ~FacetManagerHost() {}
+
+ // Reads the equivalence class containing |facet_uri| from the database and
+ // returns true if found; returns false otherwise.
+ virtual bool ReadAffiliationsFromDatabase(
+ const FacetURI& facet_uri,
+ AffiliatedFacetsWithUpdateTime* affiliations) = 0;
+
+ // 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
+
+#endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_FACET_MANAGER_HOST_H_

Powered by Google App Engine
This is Rietveld 408576698