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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // RenderView IPC handlers: | 82 // RenderView IPC handlers: |
83 void OnFillPasswordForm(const PasswordFormFillData& form_data, | 83 void OnFillPasswordForm(const PasswordFormFillData& form_data, |
84 bool disable_popup); | 84 bool disable_popup); |
85 | 85 |
86 // Scans the given frame for password forms and sends them up to the browser. | 86 // Scans the given frame for password forms and sends them up to the browser. |
87 // If |only_visible| is true, only forms visible in the layout are sent. | 87 // If |only_visible| is true, only forms visible in the layout are sent. |
88 void SendPasswordForms(WebKit::WebFrame* frame, bool only_visible); | 88 void SendPasswordForms(WebKit::WebFrame* frame, bool only_visible); |
89 | 89 |
90 void GetSuggestions(const PasswordFormFillData& fill_data, | 90 void GetSuggestions(const PasswordFormFillData& fill_data, |
91 const base::string16& input, | 91 const base::string16& input, |
92 std::vector<base::string16>* suggestions); | 92 std::vector<base::string16>* suggestions, |
| 93 std::vector<base::string16>* realms); |
93 | 94 |
94 bool ShowSuggestionPopup(const PasswordFormFillData& fill_data, | 95 bool ShowSuggestionPopup(const PasswordFormFillData& fill_data, |
95 const WebKit::WebInputElement& user_input); | 96 const WebKit::WebInputElement& user_input); |
96 | 97 |
97 bool FillUserNameAndPassword( | 98 bool FillUserNameAndPassword( |
98 WebKit::WebInputElement* username_element, | 99 WebKit::WebInputElement* username_element, |
99 WebKit::WebInputElement* password_element, | 100 WebKit::WebInputElement* password_element, |
100 const PasswordFormFillData& fill_data, | 101 const PasswordFormFillData& fill_data, |
101 bool exact_username_match, | 102 bool exact_username_match, |
102 bool set_selection); | 103 bool set_selection); |
(...skipping 27 matching lines...) Expand all Loading... |
130 WebKit::WebView* web_view_; | 131 WebKit::WebView* web_view_; |
131 | 132 |
132 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; | 133 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; |
133 | 134 |
134 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); | 135 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); |
135 }; | 136 }; |
136 | 137 |
137 } // namespace autofill | 138 } // namespace autofill |
138 | 139 |
139 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ | 140 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
OLD | NEW |