| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_RENDERER_PASSWORD_AUTOCOMPLETE_MANAGER_H_ | 5 #ifndef CHROME_RENDERER_PASSWORD_AUTOCOMPLETE_MANAGER_H_ |
| 6 #define CHROME_RENDERER_PASSWORD_AUTOCOMPLETE_MANAGER_H_ | 6 #define CHROME_RENDERER_PASSWORD_AUTOCOMPLETE_MANAGER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 std::vector<string16>* suggestions); | 82 std::vector<string16>* suggestions); |
| 83 | 83 |
| 84 bool ShowSuggestionPopup( | 84 bool ShowSuggestionPopup( |
| 85 const webkit_glue::PasswordFormFillData& fill_data, | 85 const webkit_glue::PasswordFormFillData& fill_data, |
| 86 const WebKit::WebInputElement& user_input); | 86 const WebKit::WebInputElement& user_input); |
| 87 | 87 |
| 88 bool FillUserNameAndPassword( | 88 bool FillUserNameAndPassword( |
| 89 WebKit::WebInputElement* username_element, | 89 WebKit::WebInputElement* username_element, |
| 90 WebKit::WebInputElement* password_element, | 90 WebKit::WebInputElement* password_element, |
| 91 const webkit_glue::PasswordFormFillData& fill_data, | 91 const webkit_glue::PasswordFormFillData& fill_data, |
| 92 bool exact_username_match); | 92 bool exact_username_match, |
| 93 bool set_selection); |
| 93 | 94 |
| 94 // Convenience method that returns the routing ID of the render view we are | 95 // Convenience method that returns the routing ID of the render view we are |
| 95 // associated with. | 96 // associated with. |
| 96 int GetRoutingID() const; | 97 int GetRoutingID() const; |
| 97 | 98 |
| 98 // Weak reference. | 99 // Weak reference. |
| 99 RenderView* render_view_; | 100 RenderView* render_view_; |
| 100 | 101 |
| 101 // The logins we have filled so far with their associated info. | 102 // The logins we have filled so far with their associated info. |
| 102 LoginToPasswordInfoMap login_to_password_info_; | 103 LoginToPasswordInfoMap login_to_password_info_; |
| 103 | 104 |
| 104 ScopedRunnableMethodFactory<PasswordAutocompleteManager> method_factory_; | 105 ScopedRunnableMethodFactory<PasswordAutocompleteManager> method_factory_; |
| 105 | 106 |
| 106 DISALLOW_COPY_AND_ASSIGN(PasswordAutocompleteManager); | 107 DISALLOW_COPY_AND_ASSIGN(PasswordAutocompleteManager); |
| 107 }; | 108 }; |
| 108 | 109 |
| 109 #endif // CHROME_RENDERER_PASSWORD_AUTOCOMPLETE_MANAGER_H_ | 110 #endif // CHROME_RENDERER_PASSWORD_AUTOCOMPLETE_MANAGER_H_ |
| OLD | NEW |