| 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_
|
|
|