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

Side by Side Diff: ios/chrome/browser/passwords/ios_chrome_password_manager_client.h

Issue 1968443002: Kill the autofill password manager in case 'store()' was called. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 7 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 IOS_CHROME_BROWSER_PASSWORDS_IOS_CHROME_PASSWORD_MANAGER_CLIENT_H_ 5 #ifndef IOS_CHROME_BROWSER_PASSWORDS_IOS_CHROME_PASSWORD_MANAGER_CLIENT_H_
6 #define IOS_CHROME_BROWSER_PASSWORDS_IOS_CHROME_PASSWORD_MANAGER_CLIENT_H_ 6 #define IOS_CHROME_BROWSER_PASSWORDS_IOS_CHROME_PASSWORD_MANAGER_CLIENT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #import "components/password_manager/core/browser/password_manager_client.h" 9 #import "components/password_manager/core/browser/password_manager_client.h"
10 #include "components/password_manager/sync/browser/sync_credentials_filter.h" 10 #include "components/password_manager/sync/browser/sync_credentials_filter.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 override; 55 override;
56 bool IsOffTheRecord() const override; 56 bool IsOffTheRecord() const override;
57 PrefService* GetPrefs() override; 57 PrefService* GetPrefs() override;
58 password_manager::PasswordStore* GetPasswordStore() const override; 58 password_manager::PasswordStore* GetPasswordStore() const override;
59 void NotifyUserAutoSignin(ScopedVector<autofill::PasswordForm> local_forms, 59 void NotifyUserAutoSignin(ScopedVector<autofill::PasswordForm> local_forms,
60 const GURL& origin) override; 60 const GURL& origin) override;
61 void NotifyUserCouldBeAutoSignedIn( 61 void NotifyUserCouldBeAutoSignedIn(
62 std::unique_ptr<autofill::PasswordForm> form) override; 62 std::unique_ptr<autofill::PasswordForm> form) override;
63 void NotifySuccessfulLoginWithExistingPassword( 63 void NotifySuccessfulLoginWithExistingPassword(
64 const autofill::PasswordForm& form) override; 64 const autofill::PasswordForm& form) override;
65 void NotifyStorePasswordCalled() override;
65 void ForceSavePassword() override; 66 void ForceSavePassword() override;
66 bool IsSavingAndFillingEnabledForCurrentPage() const override; 67 bool IsSavingAndFillingEnabledForCurrentPage() const override;
67 const GURL& GetLastCommittedEntryURL() const override; 68 const GURL& GetLastCommittedEntryURL() const override;
68 const password_manager::CredentialsFilter* GetStoreResultFilter() 69 const password_manager::CredentialsFilter* GetStoreResultFilter()
69 const override; 70 const override;
70 71
71 private: 72 private:
72 id<PasswordManagerClientDelegate> delegate_; // (weak) 73 id<PasswordManagerClientDelegate> delegate_; // (weak)
73 74
74 // The preference associated with 75 // The preference associated with
75 // password_manager::prefs::kPasswordManagerSavingEnabled. 76 // password_manager::prefs::kPasswordManagerSavingEnabled.
76 BooleanPrefMember saving_passwords_enabled_; 77 BooleanPrefMember saving_passwords_enabled_;
77 78
78 const password_manager::SyncCredentialsFilter credentials_filter_; 79 const password_manager::SyncCredentialsFilter credentials_filter_;
79 80
80 DISALLOW_COPY_AND_ASSIGN(IOSChromePasswordManagerClient); 81 DISALLOW_COPY_AND_ASSIGN(IOSChromePasswordManagerClient);
81 }; 82 };
82 83
83 #endif // IOS_CHROME_BROWSER_PASSWORDS_IOS_CHROME_PASSWORD_MANAGER_CLIENT_H_ 84 #endif // IOS_CHROME_BROWSER_PASSWORDS_IOS_CHROME_PASSWORD_MANAGER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698