| 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_AUTOFILL_AGENT_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ |
| 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // PasswordAutofillAgent is guaranteed to outlive AutofillAgent. | 49 // PasswordAutofillAgent is guaranteed to outlive AutofillAgent. |
| 50 // PasswordGenerationAgent may be NULL. If it is not, then it is also | 50 // PasswordGenerationAgent may be NULL. If it is not, then it is also |
| 51 // guaranteed to outlive AutofillAgent. | 51 // guaranteed to outlive AutofillAgent. |
| 52 AutofillAgent(content::RenderView* render_view, | 52 AutofillAgent(content::RenderView* render_view, |
| 53 PasswordAutofillAgent* password_autofill_manager, | 53 PasswordAutofillAgent* password_autofill_manager, |
| 54 PasswordGenerationAgent* password_generation_agent); | 54 PasswordGenerationAgent* password_generation_agent); |
| 55 virtual ~AutofillAgent(); | 55 virtual ~AutofillAgent(); |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 // content::RenderViewObserver: | 58 // content::RenderViewObserver: |
| 59 virtual bool OnMessageReceived(const IPC::Message& message) override; | 59 bool OnMessageReceived(const IPC::Message& message) override; |
| 60 virtual void DidFinishDocumentLoad(blink::WebLocalFrame* frame) override; | 60 void DidFinishDocumentLoad(blink::WebLocalFrame* frame) override; |
| 61 virtual void DidCommitProvisionalLoad(blink::WebLocalFrame* frame, | 61 void DidCommitProvisionalLoad(blink::WebLocalFrame* frame, |
| 62 bool is_new_navigation) override; | 62 bool is_new_navigation) override; |
| 63 virtual void FrameDetached(blink::WebFrame* frame) override; | 63 void FrameDetached(blink::WebFrame* frame) override; |
| 64 virtual void FrameWillClose(blink::WebFrame* frame) override; | 64 void FrameWillClose(blink::WebFrame* frame) override; |
| 65 virtual void WillSubmitForm(blink::WebLocalFrame* frame, | 65 void WillSubmitForm(blink::WebLocalFrame* frame, |
| 66 const blink::WebFormElement& form) override; | 66 const blink::WebFormElement& form) override; |
| 67 virtual void DidChangeScrollOffset(blink::WebLocalFrame* frame) override; | 67 void DidChangeScrollOffset(blink::WebLocalFrame* frame) override; |
| 68 virtual void FocusedNodeChanged(const blink::WebNode& node) override; | 68 void FocusedNodeChanged(const blink::WebNode& node) override; |
| 69 virtual void OrientationChangeEvent() override; | 69 void OrientationChangeEvent() override; |
| 70 virtual void Resized() override; | 70 void Resized() override; |
| 71 | 71 |
| 72 // PageClickListener: | 72 // PageClickListener: |
| 73 virtual void FormControlElementClicked( | 73 void FormControlElementClicked(const blink::WebFormControlElement& element, |
| 74 const blink::WebFormControlElement& element, | 74 bool was_focused) override; |
| 75 bool was_focused) override; | |
| 76 | 75 |
| 77 // blink::WebAutofillClient: | 76 // blink::WebAutofillClient: |
| 78 virtual void textFieldDidEndEditing( | 77 virtual void textFieldDidEndEditing( |
| 79 const blink::WebInputElement& element); | 78 const blink::WebInputElement& element); |
| 80 virtual void textFieldDidChange( | 79 virtual void textFieldDidChange( |
| 81 const blink::WebFormControlElement& element); | 80 const blink::WebFormControlElement& element); |
| 82 virtual void textFieldDidReceiveKeyDown( | 81 virtual void textFieldDidReceiveKeyDown( |
| 83 const blink::WebInputElement& element, | 82 const blink::WebInputElement& element, |
| 84 const blink::WebKeyboardEvent& event); | 83 const blink::WebKeyboardEvent& event); |
| 85 virtual void didRequestAutocomplete( | 84 virtual void didRequestAutocomplete( |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 bool main_frame_processed_; | 227 bool main_frame_processed_; |
| 229 | 228 |
| 230 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; | 229 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; |
| 231 | 230 |
| 232 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); | 231 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); |
| 233 }; | 232 }; |
| 234 | 233 |
| 235 } // namespace autofill | 234 } // namespace autofill |
| 236 | 235 |
| 237 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ | 236 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ |
| OLD | NEW |