| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/autofill/content/renderer/password_autofill_agent.h" | 5 #include "components/autofill/content/renderer/password_autofill_agent.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1052 } | 1052 } |
| 1053 | 1053 |
| 1054 void PasswordAutofillAgent::DidFinishLoad() { | 1054 void PasswordAutofillAgent::DidFinishLoad() { |
| 1055 // The |frame| contents have been rendered. Let the PasswordManager know | 1055 // The |frame| contents have been rendered. Let the PasswordManager know |
| 1056 // which of the loaded frames are actually visible to the user. This also | 1056 // which of the loaded frames are actually visible to the user. This also |
| 1057 // triggers the "Save password?" infobar if the user just submitted a password | 1057 // triggers the "Save password?" infobar if the user just submitted a password |
| 1058 // form. | 1058 // form. |
| 1059 SendPasswordForms(true); | 1059 SendPasswordForms(true); |
| 1060 } | 1060 } |
| 1061 | 1061 |
| 1062 void PasswordAutofillAgent::FrameWillClose() { | 1062 void PasswordAutofillAgent::WillCommitProvisionalLoad() { |
| 1063 FrameClosing(); | 1063 FrameClosing(); |
| 1064 } | 1064 } |
| 1065 | 1065 |
| 1066 void PasswordAutofillAgent::DidCommitProvisionalLoad( | 1066 void PasswordAutofillAgent::DidCommitProvisionalLoad( |
| 1067 bool is_new_navigation, bool is_same_page_navigation) { | 1067 bool is_new_navigation, bool is_same_page_navigation) { |
| 1068 if (is_same_page_navigation) { | 1068 if (is_same_page_navigation) { |
| 1069 OnSamePageNavigationCompleted(); | 1069 OnSamePageNavigationCompleted(); |
| 1070 } | 1070 } |
| 1071 } | 1071 } |
| 1072 | 1072 |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1501 PasswordAutofillAgent::GetPasswordManagerDriver() { | 1501 PasswordAutofillAgent::GetPasswordManagerDriver() { |
| 1502 if (!password_manager_driver_) { | 1502 if (!password_manager_driver_) { |
| 1503 render_frame()->GetRemoteInterfaces()->GetInterface( | 1503 render_frame()->GetRemoteInterfaces()->GetInterface( |
| 1504 mojo::GetProxy(&password_manager_driver_)); | 1504 mojo::GetProxy(&password_manager_driver_)); |
| 1505 } | 1505 } |
| 1506 | 1506 |
| 1507 return password_manager_driver_; | 1507 return password_manager_driver_; |
| 1508 } | 1508 } |
| 1509 | 1509 |
| 1510 } // namespace autofill | 1510 } // namespace autofill |
| OLD | NEW |