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

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

Issue 2839063004: [Autofill] UKM for suggestions polled field. (Closed)
Patch Set: Created 3 years, 8 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
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 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 namespace autofill { 54 namespace autofill {
55 55
56 class AutofillDataModel; 56 class AutofillDataModel;
57 class AutofillDownloadManager; 57 class AutofillDownloadManager;
58 class AutofillExternalDelegate; 58 class AutofillExternalDelegate;
59 class AutofillField; 59 class AutofillField;
60 class AutofillClient; 60 class AutofillClient;
61 class AutofillManagerTestDelegate; 61 class AutofillManagerTestDelegate;
62 class AutofillProfile; 62 class AutofillProfile;
63 class AutofillType;
64 class CreditCard; 63 class CreditCard;
65 class FormStructureBrowserTest; 64 class FormStructureBrowserTest;
66 65
67 struct FormData; 66 struct FormData;
68 struct FormFieldData; 67 struct FormFieldData;
69 68
70 // We show the credit card signin promo only a certain number of times. 69 // We show the credit card signin promo only a certain number of times.
71 extern const int kCreditCardSigninPromoImpressionLimit; 70 extern const int kCreditCardSigninPromoImpressionLimit;
72 71
73 // Manages saving and restoring the user's personal information entered into web 72 // Manages saving and restoring the user's personal information entered into web
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 FormStructure** updated_form) WARN_UNUSED_RESULT; 403 FormStructure** updated_form) WARN_UNUSED_RESULT;
405 404
406 // Returns a list of values from the stored profiles that match |type| and the 405 // Returns a list of values from the stored profiles that match |type| and the
407 // value of |field| and returns the labels of the matching profiles. |labels| 406 // value of |field| and returns the labels of the matching profiles. |labels|
408 // is filled with the Profile label. 407 // is filled with the Profile label.
409 std::vector<Suggestion> GetProfileSuggestions( 408 std::vector<Suggestion> GetProfileSuggestions(
410 const FormStructure& form, 409 const FormStructure& form,
411 const FormFieldData& field, 410 const FormFieldData& field,
412 const AutofillField& autofill_field) const; 411 const AutofillField& autofill_field) const;
413 412
414 // Returns a list of values from the stored credit cards that match |type| and 413 // Returns a list of values from the stored credit cards that match |type| and
Jared Saul 2017/04/26 22:50:08 comment referencing |type| is now incorrect
csashi 2017/04/27 18:41:17 Update comment?
jiahuiguo 2017/05/24 18:00:00 Done.
415 // the value of |field| and returns the labels of the matching credit cards. 414 // the value of |field| and returns the labels of the matching credit cards.
416 std::vector<Suggestion> GetCreditCardSuggestions( 415 std::vector<Suggestion> GetCreditCardSuggestions(
417 const FormFieldData& field, 416 const FormFieldData& field,
418 const AutofillType& type) const; 417 const AutofillField& autofill_field) const;
419 418
420 // Parses the forms using heuristic matching and querying the Autofill server. 419 // Parses the forms using heuristic matching and querying the Autofill server.
421 void ParseForms(const std::vector<FormData>& forms); 420 void ParseForms(const std::vector<FormData>& forms);
422 421
423 // Parses the form and adds it to |form_structures_|. 422 // Parses the form and adds it to |form_structures_|.
424 bool ParseForm(const FormData& form, FormStructure** parsed_form_structure); 423 bool ParseForm(const FormData& form, FormStructure** parsed_form_structure);
425 424
426 // Imports the form data, submitted by the user, into |personal_data_|. 425 // Imports the form data, submitted by the user, into |personal_data_|.
427 void ImportFormData(const FormStructure& submitted_form); 426 void ImportFormData(const FormStructure& submitted_form);
428 427
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, 634 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest,
636 OnLoadedServerPredictions_ResetManager); 635 OnLoadedServerPredictions_ResetManager);
637 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSavePaymentsCard); 636 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSavePaymentsCard);
638 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, FillInUpdatedExpirationDate); 637 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, FillInUpdatedExpirationDate);
639 DISALLOW_COPY_AND_ASSIGN(AutofillManager); 638 DISALLOW_COPY_AND_ASSIGN(AutofillManager);
640 }; 639 };
641 640
642 } // namespace autofill 641 } // namespace autofill
643 642
644 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ 643 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_manager.cc » ('j') | tools/metrics/ukm/ukm.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698