Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2244)

Side by Side Diff: chrome/renderer/autofill/password_autofill_manager.cc

Issue 11830028: Update some #includes in chrome/renderer/autofill/ for headers in the new Platform directory (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/password_autofill_manager.h" 5 #include "chrome/renderer/autofill/password_autofill_manager.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "chrome/common/autofill_messages.h" 10 #include "chrome/common/autofill_messages.h"
11 #include "chrome/common/form_field_data.h" 11 #include "chrome/common/form_field_data.h"
12 #include "chrome/common/password_form_fill_data.h" 12 #include "chrome/common/password_form_fill_data.h"
13 #include "chrome/renderer/autofill/form_autofill_util.h" 13 #include "chrome/renderer/autofill/form_autofill_util.h"
14 #include "content/public/common/password_form.h" 14 #include "content/public/common/password_form.h"
15 #include "content/public/renderer/password_form_conversion_utils.h" 15 #include "content/public/renderer/password_form_conversion_utils.h"
16 #include "content/public/renderer/render_view.h" 16 #include "content/public/renderer/render_view.h"
17 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h"
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAutofillClient.h" 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAutofillClient.h"
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h"
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h"
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h"
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
25 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h"
26 #include "ui/base/keycodes/keyboard_codes.h" 26 #include "ui/base/keycodes/keyboard_codes.h"
27 27
28 namespace { 28 namespace {
29 29
30 // The size above which we stop triggering autocomplete. 30 // The size above which we stop triggering autocomplete.
31 static const size_t kMaximumTextSizeForAutocomplete = 1000; 31 static const size_t kMaximumTextSizeForAutocomplete = 1000;
32 32
33 // Maps element names to the actual elements to simplify form filling. 33 // Maps element names to the actual elements to simplify form filling.
34 typedef std::map<string16, WebKit::WebInputElement> 34 typedef std::map<string16, WebKit::WebInputElement>
35 FormInputElementMap; 35 FormInputElementMap;
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 LoginToPasswordInfoMap::iterator iter = login_to_password_info_.find(input); 633 LoginToPasswordInfoMap::iterator iter = login_to_password_info_.find(input);
634 if (iter == login_to_password_info_.end()) 634 if (iter == login_to_password_info_.end())
635 return false; 635 return false;
636 636
637 *found_input = input; 637 *found_input = input;
638 *found_password = iter->second; 638 *found_password = iter->second;
639 return true; 639 return true;
640 } 640 }
641 641
642 } // namespace autofill 642 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/renderer/autofill/form_cache.cc ('k') | chrome/renderer/autofill/password_autofill_manager_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698