OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/renderer/autofill/autofill_agent.h" | 5 #include "chrome/renderer/autofill/autofill_agent.h" |
6 | 6 |
| 7 #include "base/message_loop.h" |
7 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
8 #include "chrome/common/autofill_messages.h" | 9 #include "chrome/common/autofill_messages.h" |
9 #include "chrome/common/chrome_constants.h" | 10 #include "chrome/common/chrome_constants.h" |
10 #include "chrome/renderer/autofill/password_autofill_manager.h" | 11 #include "chrome/renderer/autofill/password_autofill_manager.h" |
11 #include "content/renderer/render_view.h" | 12 #include "content/renderer/render_view.h" |
12 #include "grit/generated_resources.h" | 13 #include "grit/generated_resources.h" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement
.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement
.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 // WebFormControlElementToFormField does not scrape the DOM for the field | 395 // WebFormControlElementToFormField does not scrape the DOM for the field |
395 // label, so find the label here. | 396 // label, so find the label here. |
396 // TODO(jhawkins): Add form and field identities so we can use the cached form | 397 // TODO(jhawkins): Add form and field identities so we can use the cached form |
397 // data in FormManager. | 398 // data in FormManager. |
398 field->label = FormManager::LabelForElement(element); | 399 field->label = FormManager::LabelForElement(element); |
399 | 400 |
400 return true; | 401 return true; |
401 } | 402 } |
402 | 403 |
403 } // namespace autofill | 404 } // namespace autofill |
OLD | NEW |