OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_AUTOFILL_PASSWORD_AUTOFILL_MANAGER_H_ | 5 #ifndef CHROME_RENDERER_AUTOFILL_PASSWORD_AUTOFILL_MANAGER_H_ |
6 #define CHROME_RENDERER_AUTOFILL_PASSWORD_AUTOFILL_MANAGER_H_ | 6 #define CHROME_RENDERER_AUTOFILL_PASSWORD_AUTOFILL_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 struct PasswordInfo { | 56 struct PasswordInfo { |
57 WebKit::WebInputElement password_field; | 57 WebKit::WebInputElement password_field; |
58 webkit_glue::PasswordFormFillData fill_data; | 58 webkit_glue::PasswordFormFillData fill_data; |
59 bool backspace_pressed_last; | 59 bool backspace_pressed_last; |
60 PasswordInfo() : backspace_pressed_last(false) {} | 60 PasswordInfo() : backspace_pressed_last(false) {} |
61 }; | 61 }; |
62 typedef std::map<WebKit::WebElement, PasswordInfo> LoginToPasswordInfoMap; | 62 typedef std::map<WebKit::WebElement, PasswordInfo> LoginToPasswordInfoMap; |
63 | 63 |
64 // RenderViewObserver: | 64 // RenderViewObserver: |
65 virtual bool OnMessageReceived(const IPC::Message& message); | 65 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
66 virtual void DidFinishDocumentLoad(WebKit::WebFrame* frame); | 66 virtual void DidFinishDocumentLoad(WebKit::WebFrame* frame) OVERRIDE; |
67 virtual void DidFinishLoad(WebKit::WebFrame* frame); | 67 virtual void DidFinishLoad(WebKit::WebFrame* frame) OVERRIDE; |
68 virtual void FrameDetached(WebKit::WebFrame* frame); | 68 virtual void FrameDetached(WebKit::WebFrame* frame) OVERRIDE; |
69 virtual void FrameWillClose(WebKit::WebFrame* frame); | 69 virtual void FrameWillClose(WebKit::WebFrame* frame) OVERRIDE; |
70 | 70 |
71 // PageClickListener: | 71 // PageClickListener: |
72 virtual bool InputElementClicked(const WebKit::WebInputElement& element, | 72 virtual bool InputElementClicked(const WebKit::WebInputElement& element, |
73 bool was_focused, | 73 bool was_focused, |
74 bool is_focused) OVERRIDE; | 74 bool is_focused) OVERRIDE; |
75 virtual bool InputElementLostFocus() OVERRIDE; | 75 virtual bool InputElementLostFocus() OVERRIDE; |
76 | 76 |
77 // RenderView IPC handlers: | 77 // RenderView IPC handlers: |
78 void OnFillPasswordForm(const webkit_glue::PasswordFormFillData& form_data); | 78 void OnFillPasswordForm(const webkit_glue::PasswordFormFillData& form_data); |
79 | 79 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 LoginToPasswordInfoMap login_to_password_info_; | 115 LoginToPasswordInfoMap login_to_password_info_; |
116 | 116 |
117 base::WeakPtrFactory<PasswordAutofillManager> weak_ptr_factory_; | 117 base::WeakPtrFactory<PasswordAutofillManager> weak_ptr_factory_; |
118 | 118 |
119 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillManager); | 119 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillManager); |
120 }; | 120 }; |
121 | 121 |
122 } // namespace autofill | 122 } // namespace autofill |
123 | 123 |
124 #endif // CHROME_RENDERER_AUTOFILL_PASSWORD_AUTOFILL_MANAGER_H_ | 124 #endif // CHROME_RENDERER_AUTOFILL_PASSWORD_AUTOFILL_MANAGER_H_ |
OLD | NEW |