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

Side by Side Diff: components/autofill/core/browser/autofill_manager.cc

Issue 707173004: Refactor Autofill for out of process iframes (OOPIF). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mem leak Created 6 years 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
OLDNEW
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 #include "components/autofill/core/browser/autofill_manager.h" 5 #include "components/autofill/core/browser/autofill_manager.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <limits> 9 #include <limits>
10 #include <map> 10 #include <map>
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 677
678 void AutofillManager::OnLoadedServerPredictions( 678 void AutofillManager::OnLoadedServerPredictions(
679 const std::string& response_xml) { 679 const std::string& response_xml) {
680 // Parse and store the server predictions. 680 // Parse and store the server predictions.
681 FormStructure::ParseQueryResponse(response_xml, 681 FormStructure::ParseQueryResponse(response_xml,
682 form_structures_.get(), 682 form_structures_.get(),
683 *metric_logger_); 683 *metric_logger_);
684 684
685 // Forward form structures to the password generation manager to detect 685 // Forward form structures to the password generation manager to detect
686 // account creation forms. 686 // account creation forms.
687 client_->DetectAccountCreationForms(form_structures_.get()); 687 driver_->DetectAccountCreationForms(form_structures_.get());
688 688
689 // If the corresponding flag is set, annotate forms with the predicted types. 689 // If the corresponding flag is set, annotate forms with the predicted types.
690 driver_->SendAutofillTypePredictionsToRenderer(form_structures_.get()); 690 driver_->SendAutofillTypePredictionsToRenderer(form_structures_.get());
691 } 691 }
692 692
693 void AutofillManager::OnDidEndTextFieldEditing() { 693 void AutofillManager::OnDidEndTextFieldEditing() {
694 external_delegate_->DidEndTextFieldEditing(); 694 external_delegate_->DidEndTextFieldEditing();
695 } 695 }
696 696
697 bool AutofillManager::IsAutofillEnabled() const { 697 bool AutofillManager::IsAutofillEnabled() const {
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
1295 return false; 1295 return false;
1296 1296
1297 // Disregard forms that we wouldn't ever autofill in the first place. 1297 // Disregard forms that we wouldn't ever autofill in the first place.
1298 if (!form.ShouldBeParsed()) 1298 if (!form.ShouldBeParsed())
1299 return false; 1299 return false;
1300 1300
1301 return true; 1301 return true;
1302 } 1302 }
1303 1303
1304 } // namespace autofill 1304 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_manager.h ('k') | components/autofill/core/browser/test_autofill_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698