| 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 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
| 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 void SendPasswordForms(WebKit::WebFrame* frame, bool only_visible); | 100 void SendPasswordForms(WebKit::WebFrame* frame, bool only_visible); |
| 101 | 101 |
| 102 void GetSuggestions(const PasswordFormFillData& fill_data, | 102 void GetSuggestions(const PasswordFormFillData& fill_data, |
| 103 const base::string16& input, | 103 const base::string16& input, |
| 104 std::vector<base::string16>* suggestions, | 104 std::vector<base::string16>* suggestions, |
| 105 std::vector<base::string16>* realms); | 105 std::vector<base::string16>* realms); |
| 106 | 106 |
| 107 bool ShowSuggestionPopup(const PasswordFormFillData& fill_data, | 107 bool ShowSuggestionPopup(const PasswordFormFillData& fill_data, |
| 108 const WebKit::WebInputElement& user_input); | 108 const WebKit::WebInputElement& user_input); |
| 109 | 109 |
| 110 // Attempts to fill |username_element| and |password_element| with the |
| 111 // |fill_data|. Will use the data corresponding to the preferred username, |
| 112 // unless the |username_element| already has a value set. In that case, |
| 113 // attempts to fill the password matching the already filled username, if |
| 114 // such a password exists. |
| 115 void FillFormOnPasswordRecieved(const PasswordFormFillData& fill_data, |
| 116 WebKit::WebInputElement username_element, |
| 117 WebKit::WebInputElement password_element); |
| 118 |
| 110 bool FillUserNameAndPassword( | 119 bool FillUserNameAndPassword( |
| 111 WebKit::WebInputElement* username_element, | 120 WebKit::WebInputElement* username_element, |
| 112 WebKit::WebInputElement* password_element, | 121 WebKit::WebInputElement* password_element, |
| 113 const PasswordFormFillData& fill_data, | 122 const PasswordFormFillData& fill_data, |
| 114 bool exact_username_match, | 123 bool exact_username_match, |
| 115 bool set_selection); | 124 bool set_selection); |
| 116 | 125 |
| 117 // Fills |login_input| and |password| with the most relevant suggestion from | 126 // Fills |login_input| and |password| with the most relevant suggestion from |
| 118 // |fill_data| and shows a popup with other suggestions. | 127 // |fill_data| and shows a popup with other suggestions. |
| 119 void PerformInlineAutocomplete( | 128 void PerformInlineAutocomplete( |
| (...skipping 24 matching lines...) Expand all Loading... |
| 144 FrameToPasswordFormMap provisionally_saved_forms_; | 153 FrameToPasswordFormMap provisionally_saved_forms_; |
| 145 | 154 |
| 146 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; | 155 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; |
| 147 | 156 |
| 148 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); | 157 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); |
| 149 }; | 158 }; |
| 150 | 159 |
| 151 } // namespace autofill | 160 } // namespace autofill |
| 152 | 161 |
| 153 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ | 162 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
| OLD | NEW |