Index: components/password_manager/core/browser/password_manager_client.h |
diff --git a/components/password_manager/core/browser/password_manager_client.h b/components/password_manager/core/browser/password_manager_client.h |
index b2af53f864b69d823ff3cffe002356fcbbdaa294..c5b2828c86aa93de3cd035f92c55bc2545d79921 100644 |
--- a/components/password_manager/core/browser/password_manager_client.h |
+++ b/components/password_manager/core/browser/password_manager_client.h |
@@ -9,6 +9,7 @@ |
#include "base/memory/scoped_vector.h" |
#include "components/autofill/core/common/password_form.h" |
#include "components/password_manager/core/browser/credentials_filter.h" |
+#include "components/password_manager/core/browser/log_router.h" |
#include "components/password_manager/core/browser/password_store.h" |
class PrefService; |
@@ -126,19 +127,6 @@ class PasswordManagerClient { |
// TODO(vabr): Factor this out of the client to the sync layer. |
virtual PasswordSyncState GetPasswordSyncState() const; |
- // Only for clients which registered with a LogRouter: If called with |
- // |router_can_be_used| set to false, the client may no longer use the |
- // LogRouter. If |router_can_be_used| is true, the LogRouter can be used after |
- // the return from OnLogRouterAvailabilityChanged. |
- virtual void OnLogRouterAvailabilityChanged(bool router_can_be_used); |
- |
- // Forward |text| for display to the LogRouter (if registered with one). |
- virtual void LogSavePasswordProgress(const std::string& text) const; |
- |
- // Returns true if logs recorded via LogSavePasswordProgress will be |
- // displayed, and false otherwise. |
- virtual bool IsLoggingActive() const; |
- |
// Returns true if last navigation page had HTTP error i.e 5XX or 4XX |
virtual bool WasLastNavigationHTTPError() const; |
@@ -173,6 +161,15 @@ class PasswordManagerClient { |
// Use this to filter credentials before handling them in password manager. |
virtual const CredentialsFilter* GetStoreResultFilter() const = 0; |
+ // Returns a LogRouter instance, unless either not available or the current |
+ // tab is a WebUI (no need to log for WebUI, because passwords are never |
+ // stored there). |
+ virtual LogRouter* GetLogRouter() const; |
+ |
+ // Notifies all associated PasswordManagerDriver instances about whether |
+ // logging is available. |
+ virtual void NotifyDriversAboutLoggingAvailability(bool is_available); |
+ |
private: |
DISALLOW_COPY_AND_ASSIGN(PasswordManagerClient); |
}; |