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