| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ | 5 #ifndef COMPONENTS_AUTOFILL_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
| 6 #define COMPONENTS_AUTOFILL_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ | 6 #define COMPONENTS_AUTOFILL_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 79 |
| 80 // RenderView IPC handlers: | 80 // RenderView IPC handlers: |
| 81 void OnFillPasswordForm(const PasswordFormFillData& form_data, | 81 void OnFillPasswordForm(const PasswordFormFillData& form_data, |
| 82 bool disable_popup); | 82 bool disable_popup); |
| 83 | 83 |
| 84 // Scans the given frame for password forms and sends them up to the browser. | 84 // Scans the given frame for password forms and sends them up to the browser. |
| 85 // If |only_visible| is true, only forms visible in the layout are sent. | 85 // If |only_visible| is true, only forms visible in the layout are sent. |
| 86 void SendPasswordForms(WebKit::WebFrame* frame, bool only_visible); | 86 void SendPasswordForms(WebKit::WebFrame* frame, bool only_visible); |
| 87 | 87 |
| 88 void GetSuggestions(const PasswordFormFillData& fill_data, | 88 void GetSuggestions(const PasswordFormFillData& fill_data, |
| 89 const string16& input, | 89 const base::string16& input, |
| 90 std::vector<string16>* suggestions); | 90 std::vector<base::string16>* suggestions); |
| 91 | 91 |
| 92 bool ShowSuggestionPopup(const PasswordFormFillData& fill_data, | 92 bool ShowSuggestionPopup(const PasswordFormFillData& fill_data, |
| 93 const WebKit::WebInputElement& user_input); | 93 const WebKit::WebInputElement& user_input); |
| 94 | 94 |
| 95 bool FillUserNameAndPassword( | 95 bool FillUserNameAndPassword( |
| 96 WebKit::WebInputElement* username_element, | 96 WebKit::WebInputElement* username_element, |
| 97 WebKit::WebInputElement* password_element, | 97 WebKit::WebInputElement* password_element, |
| 98 const PasswordFormFillData& fill_data, | 98 const PasswordFormFillData& fill_data, |
| 99 bool exact_username_match, | 99 bool exact_username_match, |
| 100 bool set_selection); | 100 bool set_selection); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 125 WebKit::WebView* web_view_; | 125 WebKit::WebView* web_view_; |
| 126 | 126 |
| 127 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; | 127 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; |
| 128 | 128 |
| 129 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); | 129 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 } // namespace autofill | 132 } // namespace autofill |
| 133 | 133 |
| 134 #endif // COMPONENTS_AUTOFILL_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ | 134 #endif // COMPONENTS_AUTOFILL_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
| OLD | NEW |