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

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

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