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

Side by Side Diff: components/password_manager/core/browser/password_manager_client.h

Issue 1730313004: Remove PasswordStore::AuthorizationPromptPolicy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698