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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 }; | 67 }; |
68 | 68 |
69 struct PasswordInfo { | 69 struct PasswordInfo { |
70 WebKit::WebInputElement password_field; | 70 WebKit::WebInputElement password_field; |
71 PasswordFormFillData fill_data; | 71 PasswordFormFillData fill_data; |
72 bool backspace_pressed_last; | 72 bool backspace_pressed_last; |
73 PasswordInfo() : backspace_pressed_last(false) {} | 73 PasswordInfo() : backspace_pressed_last(false) {} |
74 }; | 74 }; |
75 typedef std::map<WebKit::WebElement, PasswordInfo> LoginToPasswordInfoMap; | 75 typedef std::map<WebKit::WebElement, PasswordInfo> LoginToPasswordInfoMap; |
76 typedef std::map<WebKit::WebFrame*, | 76 typedef std::map<WebKit::WebFrame*, |
77 linked_ptr<content::PasswordForm> > FrameToPasswordFormMap; | 77 linked_ptr<PasswordForm> > FrameToPasswordFormMap; |
78 | 78 |
79 // RenderViewObserver: | 79 // RenderViewObserver: |
80 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 80 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
81 virtual void DidStartProvisionalLoad(WebKit::WebFrame* frame) OVERRIDE; | 81 virtual void DidStartProvisionalLoad(WebKit::WebFrame* frame) OVERRIDE; |
82 virtual void DidStartLoading() OVERRIDE; | 82 virtual void DidStartLoading() OVERRIDE; |
83 virtual void DidFinishDocumentLoad(WebKit::WebFrame* frame) OVERRIDE; | 83 virtual void DidFinishDocumentLoad(WebKit::WebFrame* frame) OVERRIDE; |
84 virtual void DidFinishLoad(WebKit::WebFrame* frame) OVERRIDE; | 84 virtual void DidFinishLoad(WebKit::WebFrame* frame) OVERRIDE; |
85 virtual void FrameDetached(WebKit::WebFrame* frame) OVERRIDE; | 85 virtual void FrameDetached(WebKit::WebFrame* frame) OVERRIDE; |
86 virtual void FrameWillClose(WebKit::WebFrame* frame) OVERRIDE; | 86 virtual void FrameWillClose(WebKit::WebFrame* frame) OVERRIDE; |
87 virtual void WillSendSubmitEvent(WebKit::WebFrame* frame, | 87 virtual void WillSendSubmitEvent(WebKit::WebFrame* frame, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 FrameToPasswordFormMap provisionally_saved_forms_; | 141 FrameToPasswordFormMap provisionally_saved_forms_; |
142 | 142 |
143 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; | 143 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; |
144 | 144 |
145 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); | 145 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); |
146 }; | 146 }; |
147 | 147 |
148 } // namespace autofill | 148 } // namespace autofill |
149 | 149 |
150 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ | 150 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
OLD | NEW |