| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 120 |
| 121 DISALLOW_COPY_AND_ASSIGN(PasswordValueGatekeeper); | 121 DISALLOW_COPY_AND_ASSIGN(PasswordValueGatekeeper); |
| 122 }; | 122 }; |
| 123 | 123 |
| 124 // RenderViewObserver: | 124 // RenderViewObserver: |
| 125 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 125 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 126 virtual void DidStartProvisionalLoad(blink::WebLocalFrame* frame) OVERRIDE; | 126 virtual void DidStartProvisionalLoad(blink::WebLocalFrame* frame) OVERRIDE; |
| 127 virtual void DidStartLoading() OVERRIDE; | 127 virtual void DidStartLoading() OVERRIDE; |
| 128 virtual void DidFinishDocumentLoad(blink::WebLocalFrame* frame) OVERRIDE; | 128 virtual void DidFinishDocumentLoad(blink::WebLocalFrame* frame) OVERRIDE; |
| 129 virtual void DidFinishLoad(blink::WebLocalFrame* frame) OVERRIDE; | 129 virtual void DidFinishLoad(blink::WebLocalFrame* frame) OVERRIDE; |
| 130 virtual void DidStopLoading() OVERRIDE; |
| 130 virtual void FrameDetached(blink::WebFrame* frame) OVERRIDE; | 131 virtual void FrameDetached(blink::WebFrame* frame) OVERRIDE; |
| 131 virtual void FrameWillClose(blink::WebFrame* frame) OVERRIDE; | 132 virtual void FrameWillClose(blink::WebFrame* frame) OVERRIDE; |
| 132 virtual void WillSendSubmitEvent(blink::WebLocalFrame* frame, | 133 virtual void WillSendSubmitEvent(blink::WebLocalFrame* frame, |
| 133 const blink::WebFormElement& form) OVERRIDE; | 134 const blink::WebFormElement& form) OVERRIDE; |
| 134 virtual void WillSubmitForm(blink::WebLocalFrame* frame, | 135 virtual void WillSubmitForm(blink::WebLocalFrame* frame, |
| 135 const blink::WebFormElement& form) OVERRIDE; | 136 const blink::WebFormElement& form) OVERRIDE; |
| 136 | 137 |
| 137 // RenderView IPC handlers: | 138 // RenderView IPC handlers: |
| 138 void OnFillPasswordForm(const PasswordFormFillData& form_data); | 139 void OnFillPasswordForm(const PasswordFormFillData& form_data); |
| 139 void OnChangeLoggingState(bool active); | 140 void OnChangeLoggingState(bool active); |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 | 212 |
| 212 // True indicates that the username field was autofilled, false otherwise. | 213 // True indicates that the username field was autofilled, false otherwise. |
| 213 bool was_username_autofilled_; | 214 bool was_username_autofilled_; |
| 214 // True indicates that the password field was autofilled, false otherwise. | 215 // True indicates that the password field was autofilled, false otherwise. |
| 215 bool was_password_autofilled_; | 216 bool was_password_autofilled_; |
| 216 | 217 |
| 217 // Records original starting point of username element's selection range | 218 // Records original starting point of username element's selection range |
| 218 // before preview. | 219 // before preview. |
| 219 int username_selection_start_; | 220 int username_selection_start_; |
| 220 | 221 |
| 222 // True indicates that all frames in a page have been rendered. |
| 223 bool did_stop_loading_; |
| 224 |
| 221 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; | 225 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; |
| 222 | 226 |
| 223 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); | 227 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); |
| 224 }; | 228 }; |
| 225 | 229 |
| 226 } // namespace autofill | 230 } // namespace autofill |
| 227 | 231 |
| 228 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ | 232 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
| OLD | NEW |