| OLD | NEW |
| 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 #include "components/password_manager/core/browser/stub_password_manager_client.
h" | 5 #include "components/password_manager/core/browser/stub_password_manager_client.
h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "components/password_manager/core/browser/credentials_filter.h" | 9 #include "components/password_manager/core/browser/credentials_filter.h" |
| 10 #include "components/password_manager/core/browser/password_form_manager.h" | 10 #include "components/password_manager/core/browser/password_form_manager.h" |
| 11 | 11 |
| 12 namespace password_manager { | 12 namespace password_manager { |
| 13 | 13 |
| 14 StubPasswordManagerClient::StubPasswordManagerClient() {} | 14 StubPasswordManagerClient::StubPasswordManagerClient() {} |
| 15 | 15 |
| 16 StubPasswordManagerClient::~StubPasswordManagerClient() {} | 16 StubPasswordManagerClient::~StubPasswordManagerClient() {} |
| 17 | 17 |
| 18 bool StubPasswordManagerClient::PromptUserToSaveOrUpdatePassword( | 18 bool StubPasswordManagerClient::PromptUserToSaveOrUpdatePassword( |
| 19 std::unique_ptr<PasswordFormManager> form_to_save, | 19 scoped_refptr<PasswordFormManager> form_to_save, |
| 20 bool update_password) { | 20 bool update_password) { |
| 21 return false; | 21 return false; |
| 22 } | 22 } |
| 23 | 23 |
| 24 bool StubPasswordManagerClient::PromptUserToChooseCredentials( | 24 bool StubPasswordManagerClient::PromptUserToChooseCredentials( |
| 25 std::vector<std::unique_ptr<autofill::PasswordForm>> local_forms, | 25 std::vector<std::unique_ptr<autofill::PasswordForm>> local_forms, |
| 26 const GURL& origin, | 26 const GURL& origin, |
| 27 const CredentialsCallback& callback) { | 27 const CredentialsCallback& callback) { |
| 28 return false; | 28 return false; |
| 29 } | 29 } |
| 30 | 30 |
| 31 void StubPasswordManagerClient::NotifyUserAutoSignin( | 31 void StubPasswordManagerClient::NotifyUserAutoSignin( |
| 32 std::vector<std::unique_ptr<autofill::PasswordForm>> local_forms, | 32 std::vector<std::unique_ptr<autofill::PasswordForm>> local_forms, |
| 33 const GURL& origin) {} | 33 const GURL& origin) {} |
| 34 | 34 |
| 35 void StubPasswordManagerClient::NotifyUserCouldBeAutoSignedIn( | 35 void StubPasswordManagerClient::NotifyUserCouldBeAutoSignedIn( |
| 36 std::unique_ptr<autofill::PasswordForm> form) {} | 36 std::unique_ptr<autofill::PasswordForm> form) {} |
| 37 | 37 |
| 38 void StubPasswordManagerClient::NotifySuccessfulLoginWithExistingPassword( | 38 void StubPasswordManagerClient::NotifySuccessfulLoginWithExistingPassword( |
| 39 const autofill::PasswordForm& form) {} | 39 const autofill::PasswordForm& form) {} |
| 40 | 40 |
| 41 void StubPasswordManagerClient::NotifyStorePasswordCalled() {} | 41 void StubPasswordManagerClient::NotifyStorePasswordCalled() {} |
| 42 | 42 |
| 43 void StubPasswordManagerClient::AutomaticPasswordSave( | 43 void StubPasswordManagerClient::AutomaticPasswordSave( |
| 44 std::unique_ptr<PasswordFormManager> saved_manager) {} | 44 scoped_refptr<PasswordFormManager> saved_manager) {} |
| 45 | 45 |
| 46 PrefService* StubPasswordManagerClient::GetPrefs() { | 46 PrefService* StubPasswordManagerClient::GetPrefs() { |
| 47 return nullptr; | 47 return nullptr; |
| 48 } | 48 } |
| 49 | 49 |
| 50 PasswordStore* StubPasswordManagerClient::GetPasswordStore() const { | 50 PasswordStore* StubPasswordManagerClient::GetPasswordStore() const { |
| 51 return nullptr; | 51 return nullptr; |
| 52 } | 52 } |
| 53 | 53 |
| 54 const GURL& StubPasswordManagerClient::GetLastCommittedEntryURL() const { | 54 const GURL& StubPasswordManagerClient::GetLastCommittedEntryURL() const { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 72 | 72 |
| 73 void StubPasswordManagerClient::CheckSafeBrowsingReputation( | 73 void StubPasswordManagerClient::CheckSafeBrowsingReputation( |
| 74 const GURL& form_action, | 74 const GURL& form_action, |
| 75 const GURL& frame_url) {} | 75 const GURL& frame_url) {} |
| 76 | 76 |
| 77 void StubPasswordManagerClient::CheckProtectedPasswordEntry( | 77 void StubPasswordManagerClient::CheckProtectedPasswordEntry( |
| 78 const std::string& password_saved_domain) {} | 78 const std::string& password_saved_domain) {} |
| 79 #endif | 79 #endif |
| 80 | 80 |
| 81 } // namespace password_manager | 81 } // namespace password_manager |
| OLD | NEW |