| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 virtual void DidFinishLoad(blink::WebLocalFrame* frame) OVERRIDE; | 129 virtual void DidFinishLoad(blink::WebLocalFrame* frame) OVERRIDE; |
| 130 virtual void FrameDetached(blink::WebFrame* frame) OVERRIDE; | 130 virtual void FrameDetached(blink::WebFrame* frame) OVERRIDE; |
| 131 virtual void FrameWillClose(blink::WebFrame* frame) OVERRIDE; | 131 virtual void FrameWillClose(blink::WebFrame* frame) OVERRIDE; |
| 132 virtual void WillSendSubmitEvent(blink::WebLocalFrame* frame, | 132 virtual void WillSendSubmitEvent(blink::WebLocalFrame* frame, |
| 133 const blink::WebFormElement& form) OVERRIDE; | 133 const blink::WebFormElement& form) OVERRIDE; |
| 134 virtual void WillSubmitForm(blink::WebLocalFrame* frame, | 134 virtual void WillSubmitForm(blink::WebLocalFrame* frame, |
| 135 const blink::WebFormElement& form) OVERRIDE; | 135 const blink::WebFormElement& form) OVERRIDE; |
| 136 | 136 |
| 137 // RenderView IPC handlers: | 137 // RenderView IPC handlers: |
| 138 void OnFillPasswordForm(const PasswordFormFillData& form_data); | 138 void OnFillPasswordForm(const PasswordFormFillData& form_data); |
| 139 void OnChangeLoggingState(bool active); | 139 void OnSetLoggingState(bool active); |
| 140 | 140 |
| 141 // Scans the given frame for password forms and sends them up to the browser. | 141 // Scans the given frame for password forms and sends them up to the browser. |
| 142 // If |only_visible| is true, only forms visible in the layout are sent. | 142 // If |only_visible| is true, only forms visible in the layout are sent. |
| 143 void SendPasswordForms(blink::WebFrame* frame, bool only_visible); | 143 void SendPasswordForms(blink::WebFrame* frame, bool only_visible); |
| 144 | 144 |
| 145 void GetSuggestions(const PasswordFormFillData& fill_data, | 145 void GetSuggestions(const PasswordFormFillData& fill_data, |
| 146 const base::string16& input, | 146 const base::string16& input, |
| 147 std::vector<base::string16>* suggestions, | 147 std::vector<base::string16>* suggestions, |
| 148 std::vector<base::string16>* realms); | 148 std::vector<base::string16>* realms); |
| 149 | 149 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 int username_selection_start_; | 219 int username_selection_start_; |
| 220 | 220 |
| 221 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; | 221 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; |
| 222 | 222 |
| 223 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); | 223 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); |
| 224 }; | 224 }; |
| 225 | 225 |
| 226 } // namespace autofill | 226 } // namespace autofill |
| 227 | 227 |
| 228 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ | 228 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
| OLD | NEW |