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/callback.h" | 8 #include "base/callback.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 virtual PasswordStore* GetPasswordStore() const = 0; | 141 virtual PasswordStore* GetPasswordStore() const = 0; |
142 | 142 |
143 // Reports whether and how passwords are synced in the embedder. The default | 143 // Reports whether and how passwords are synced in the embedder. The default |
144 // implementation always returns NOT_SYNCING_PASSWORDS. | 144 // implementation always returns NOT_SYNCING_PASSWORDS. |
145 // TODO(vabr): Factor this out of the client to the sync layer. | 145 // TODO(vabr): Factor this out of the client to the sync layer. |
146 virtual PasswordSyncState GetPasswordSyncState() const; | 146 virtual PasswordSyncState GetPasswordSyncState() const; |
147 | 147 |
148 // Returns true if last navigation page had HTTP error i.e 5XX or 4XX | 148 // Returns true if last navigation page had HTTP error i.e 5XX or 4XX |
149 virtual bool WasLastNavigationHTTPError() const; | 149 virtual bool WasLastNavigationHTTPError() const; |
150 | 150 |
151 // Returns the authorization prompt policy to be used with the given form. | |
152 // Only relevant on OSX. | |
153 virtual PasswordStore::AuthorizationPromptPolicy GetAuthorizationPromptPolicy( | |
154 const autofill::PasswordForm& form); | |
155 | |
156 // Returns whether any SSL certificate errors were encountered as a result of | 151 // Returns whether any SSL certificate errors were encountered as a result of |
157 // the last page load. | 152 // the last page load. |
158 virtual bool DidLastPageLoadEncounterSSLErrors() const; | 153 virtual bool DidLastPageLoadEncounterSSLErrors() const; |
159 | 154 |
160 // If this browsing session should not be persisted. | 155 // If this browsing session should not be persisted. |
161 virtual bool IsOffTheRecord() const; | 156 virtual bool IsOffTheRecord() const; |
162 | 157 |
163 // Returns the PasswordManager associated with this client. The non-const | 158 // Returns the PasswordManager associated with this client. The non-const |
164 // version calls the const one. | 159 // version calls the const one. |
165 PasswordManager* GetPasswordManager(); | 160 PasswordManager* GetPasswordManager(); |
(...skipping 16 matching lines...) Expand all Loading... |
182 // Returns a LogManager instance. | 177 // Returns a LogManager instance. |
183 virtual const LogManager* GetLogManager() const; | 178 virtual const LogManager* GetLogManager() const; |
184 | 179 |
185 private: | 180 private: |
186 DISALLOW_COPY_AND_ASSIGN(PasswordManagerClient); | 181 DISALLOW_COPY_AND_ASSIGN(PasswordManagerClient); |
187 }; | 182 }; |
188 | 183 |
189 } // namespace password_manager | 184 } // namespace password_manager |
190 | 185 |
191 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_CLIENT_H_ | 186 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_CLIENT_H_ |
OLD | NEW |