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

Side by Side Diff: chrome/browser/password_manager/chrome_password_manager_client.h

Issue 2447143002: Stop prerendering of a site if it uses the Credential Manager API. (Closed)
Patch Set: rebase Created 4 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/password_manager/chrome_password_manager_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ 6 #define CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 public content::WebContentsObserver, 45 public content::WebContentsObserver,
46 public content::WebContentsUserData<ChromePasswordManagerClient>, 46 public content::WebContentsUserData<ChromePasswordManagerClient>,
47 public autofill::mojom::PasswordManagerClient { 47 public autofill::mojom::PasswordManagerClient {
48 public: 48 public:
49 ~ChromePasswordManagerClient() override; 49 ~ChromePasswordManagerClient() override;
50 50
51 // PasswordManagerClient implementation. 51 // PasswordManagerClient implementation.
52 bool IsAutomaticPasswordSavingEnabled() const override; 52 bool IsAutomaticPasswordSavingEnabled() const override;
53 bool IsSavingAndFillingEnabledForCurrentPage() const override; 53 bool IsSavingAndFillingEnabledForCurrentPage() const override;
54 bool IsFillingEnabledForCurrentPage() const override; 54 bool IsFillingEnabledForCurrentPage() const override;
55 bool OnCredentialManagerUsed() override;
55 bool PromptUserToSaveOrUpdatePassword( 56 bool PromptUserToSaveOrUpdatePassword(
56 std::unique_ptr<password_manager::PasswordFormManager> form_to_save, 57 std::unique_ptr<password_manager::PasswordFormManager> form_to_save,
57 password_manager::CredentialSourceType type, 58 password_manager::CredentialSourceType type,
58 bool update_password) override; 59 bool update_password) override;
59 bool PromptUserToChooseCredentials( 60 bool PromptUserToChooseCredentials(
60 std::vector<std::unique_ptr<autofill::PasswordForm>> local_forms, 61 std::vector<std::unique_ptr<autofill::PasswordForm>> local_forms,
61 const GURL& origin, 62 const GURL& origin,
62 const CredentialsCallback& callback) override; 63 const CredentialsCallback& callback) override;
63 void ForceSavePassword() override; 64 void ForceSavePassword() override;
64 void GeneratePassword() override; 65 void GeneratePassword() override;
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 std::unique_ptr<password_manager::LogManager> log_manager_; 185 std::unique_ptr<password_manager::LogManager> log_manager_;
185 186
186 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the 187 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the
187 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'. 188 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'.
188 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_; 189 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_;
189 190
190 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); 191 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient);
191 }; 192 };
192 193
193 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ 194 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/password_manager/chrome_password_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698