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

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

Issue 2926833002: Revert of [Password Manager] Convert |pending_login_managers_| to an array of scoped_refptr (Closed)
Patch Set: Created 3 years, 6 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
« 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
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ref_counted.h"
14 #include "components/autofill/content/common/autofill_driver.mojom.h" 13 #include "components/autofill/content/common/autofill_driver.mojom.h"
15 #include "components/password_manager/content/browser/content_password_manager_d river_factory.h" 14 #include "components/password_manager/content/browser/content_password_manager_d river_factory.h"
16 #include "components/password_manager/content/browser/credential_manager_impl.h" 15 #include "components/password_manager/content/browser/credential_manager_impl.h"
17 #include "components/password_manager/core/browser/password_manager.h" 16 #include "components/password_manager/core/browser/password_manager.h"
18 #include "components/password_manager/core/browser/password_manager_client.h" 17 #include "components/password_manager/core/browser/password_manager_client.h"
19 #include "components/password_manager/core/browser/password_reuse_detection_mana ger.h" 18 #include "components/password_manager/core/browser/password_reuse_detection_mana ger.h"
20 #include "components/password_manager/sync/browser/sync_credentials_filter.h" 19 #include "components/password_manager/sync/browser/sync_credentials_filter.h"
21 #include "components/prefs/pref_member.h" 20 #include "components/prefs/pref_member.h"
22 #include "content/public/browser/render_widget_host.h" 21 #include "content/public/browser/render_widget_host.h"
23 #include "content/public/browser/web_contents_binding_set.h" 22 #include "content/public/browser/web_contents_binding_set.h"
(...skipping 23 matching lines...) Expand all
47 public: 46 public:
48 ~ChromePasswordManagerClient() override; 47 ~ChromePasswordManagerClient() override;
49 48
50 // PasswordManagerClient implementation. 49 // PasswordManagerClient implementation.
51 bool IsSavingAndFillingEnabledForCurrentPage() const override; 50 bool IsSavingAndFillingEnabledForCurrentPage() const override;
52 bool IsFillingEnabledForCurrentPage() const override; 51 bool IsFillingEnabledForCurrentPage() const override;
53 void PostHSTSQueryForHost(const GURL& origin, 52 void PostHSTSQueryForHost(const GURL& origin,
54 const HSTSCallback& callback) const override; 53 const HSTSCallback& callback) const override;
55 bool OnCredentialManagerUsed() override; 54 bool OnCredentialManagerUsed() override;
56 bool PromptUserToSaveOrUpdatePassword( 55 bool PromptUserToSaveOrUpdatePassword(
57 scoped_refptr<password_manager::PasswordFormManager> form_to_save, 56 std::unique_ptr<password_manager::PasswordFormManager> form_to_save,
58 bool update_password) override; 57 bool update_password) override;
59 bool PromptUserToChooseCredentials( 58 bool PromptUserToChooseCredentials(
60 std::vector<std::unique_ptr<autofill::PasswordForm>> local_forms, 59 std::vector<std::unique_ptr<autofill::PasswordForm>> local_forms,
61 const GURL& origin, 60 const GURL& origin,
62 const CredentialsCallback& callback) override; 61 const CredentialsCallback& callback) override;
63 void ForceSavePassword() override; 62 void ForceSavePassword() override;
64 void GeneratePassword() override; 63 void GeneratePassword() override;
65 void NotifyUserAutoSignin( 64 void NotifyUserAutoSignin(
66 std::vector<std::unique_ptr<autofill::PasswordForm>> local_forms, 65 std::vector<std::unique_ptr<autofill::PasswordForm>> local_forms,
67 const GURL& origin) override; 66 const GURL& origin) override;
68 void NotifyUserCouldBeAutoSignedIn( 67 void NotifyUserCouldBeAutoSignedIn(
69 std::unique_ptr<autofill::PasswordForm> form) override; 68 std::unique_ptr<autofill::PasswordForm> form) override;
70 void NotifySuccessfulLoginWithExistingPassword( 69 void NotifySuccessfulLoginWithExistingPassword(
71 const autofill::PasswordForm& form) override; 70 const autofill::PasswordForm& form) override;
72 void NotifyStorePasswordCalled() override; 71 void NotifyStorePasswordCalled() override;
73 void AutomaticPasswordSave( 72 void AutomaticPasswordSave(
74 scoped_refptr<password_manager::PasswordFormManager> saved_form_manager) 73 std::unique_ptr<password_manager::PasswordFormManager> saved_form_manager)
75 override; 74 override;
76 void PasswordWasAutofilled( 75 void PasswordWasAutofilled(
77 const std::map<base::string16, const autofill::PasswordForm*>& 76 const std::map<base::string16, const autofill::PasswordForm*>&
78 best_matches, 77 best_matches,
79 const GURL& origin, 78 const GURL& origin,
80 const std::vector<const autofill::PasswordForm*>* federated_matches) 79 const std::vector<const autofill::PasswordForm*>* federated_matches)
81 const override; 80 const override;
82 PrefService* GetPrefs() override; 81 PrefService* GetPrefs() override;
83 password_manager::PasswordStore* GetPasswordStore() const override; 82 password_manager::PasswordStore* GetPasswordStore() const override;
84 password_manager::PasswordSyncState GetPasswordSyncState() const override; 83 password_manager::PasswordSyncState GetPasswordSyncState() const override;
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 std::unique_ptr<password_manager::LogManager> log_manager_; 212 std::unique_ptr<password_manager::LogManager> log_manager_;
214 213
215 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the 214 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the
216 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'. 215 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'.
217 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_; 216 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_;
218 217
219 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); 218 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient);
220 }; 219 };
221 220
222 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ 221 #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