Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_CLIENT_H_ | 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_CLIENT_H_ |
| 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_CLIENT_H_ | 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
| 9 #include "components/autofill/core/common/password_form.h" | 9 #include "components/autofill/core/common/password_form.h" |
| 10 #include "components/password_manager/core/browser/password_store.h" | 10 #include "components/password_manager/core/browser/password_store.h" |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 82 // order to unblacklist a site, for example. Default implementation is a noop. | 82 // order to unblacklist a site, for example. Default implementation is a noop. |
| 83 virtual void PasswordAutofillWasBlocked( | 83 virtual void PasswordAutofillWasBlocked( |
| 84 const autofill::PasswordFormMap& best_matches) const {} | 84 const autofill::PasswordFormMap& best_matches) const {} |
| 85 | 85 |
| 86 // Gets prefs associated with this embedder. | 86 // Gets prefs associated with this embedder. |
| 87 virtual PrefService* GetPrefs() = 0; | 87 virtual PrefService* GetPrefs() = 0; |
| 88 | 88 |
| 89 // Returns the PasswordStore associated with this instance. | 89 // Returns the PasswordStore associated with this instance. |
| 90 virtual PasswordStore* GetPasswordStore() = 0; | 90 virtual PasswordStore* GetPasswordStore() = 0; |
| 91 | 91 |
| 92 // DEPRECATED | |
| 92 // Returns the PasswordManagerDriver instance associated with this instance. | 93 // Returns the PasswordManagerDriver instance associated with this instance. |
| 94 // TODO(estade): get rid of this. | |
|
vabr (Chromium)
2014/11/10 14:34:40
nit: Please also specify what to use instead, and
Evan Stade
2014/11/14 23:25:50
got rid of it
| |
| 93 virtual PasswordManagerDriver* GetDriver() = 0; | 95 virtual PasswordManagerDriver* GetDriver() = 0; |
| 94 | 96 |
| 95 // Returns the probability that the experiment identified by |experiment_name| | 97 // Returns the probability that the experiment identified by |experiment_name| |
| 96 // should be enabled. The default implementation returns 0. | 98 // should be enabled. The default implementation returns 0. |
| 97 virtual base::FieldTrial::Probability GetProbabilityForExperiment( | 99 virtual base::FieldTrial::Probability GetProbabilityForExperiment( |
| 98 const std::string& experiment_name); | 100 const std::string& experiment_name); |
| 99 | 101 |
| 100 // Returns true if password sync is enabled in the embedder. Return value for | 102 // Returns true if password sync is enabled in the embedder. Return value for |
| 101 // custom passphrase users depends on |state|. The default implementation | 103 // custom passphrase users depends on |state|. The default implementation |
| 102 // always returns false. | 104 // always returns false. |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 120 virtual PasswordStore::AuthorizationPromptPolicy GetAuthorizationPromptPolicy( | 122 virtual PasswordStore::AuthorizationPromptPolicy GetAuthorizationPromptPolicy( |
| 121 const autofill::PasswordForm& form); | 123 const autofill::PasswordForm& form); |
| 122 | 124 |
| 123 private: | 125 private: |
| 124 DISALLOW_COPY_AND_ASSIGN(PasswordManagerClient); | 126 DISALLOW_COPY_AND_ASSIGN(PasswordManagerClient); |
| 125 }; | 127 }; |
| 126 | 128 |
| 127 } // namespace password_manager | 129 } // namespace password_manager |
| 128 | 130 |
| 129 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_CLIENT_H_ | 131 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_CLIENT_H_ |
| OLD | NEW |