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

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

Issue 845173003: Autofill - don't show server cards in android preferences (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: typo Created 5 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
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_PERSONAL_DATA_MANAGER_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 // Returns whether the personal data has been loaded from the web database. 128 // Returns whether the personal data has been loaded from the web database.
129 virtual bool IsDataLoaded() const; 129 virtual bool IsDataLoaded() const;
130 130
131 // This PersonalDataManager owns these profiles and credit cards. Their 131 // This PersonalDataManager owns these profiles and credit cards. Their
132 // lifetime is until the web database is updated with new profile and credit 132 // lifetime is until the web database is updated with new profile and credit
133 // card information, respectively. |GetProfiles()| returns both web and 133 // card information, respectively. |GetProfiles()| returns both web and
134 // auxiliary profiles. |web_profiles()| returns only web profiles. 134 // auxiliary profiles. |web_profiles()| returns only web profiles.
135 virtual const std::vector<AutofillProfile*>& GetProfiles() const; 135 virtual const std::vector<AutofillProfile*>& GetProfiles() const;
136 virtual const std::vector<AutofillProfile*>& web_profiles() const; 136 virtual const std::vector<AutofillProfile*>& web_profiles() const;
137 // Returns just LOCAL_CARD cards.
138 virtual const std::vector<CreditCard*>& GetLocalCreditCards() const;
139 // Returns all credit cards, server and local.
137 virtual const std::vector<CreditCard*>& GetCreditCards() const; 140 virtual const std::vector<CreditCard*>& GetCreditCards() const;
138 141
139 // Loads profiles that can suggest data for |type|. |field_contents| is the 142 // Loads profiles that can suggest data for |type|. |field_contents| is the
140 // part the user has already typed. |field_is_autofilled| is true if the field 143 // part the user has already typed. |field_is_autofilled| is true if the field
141 // has already been autofilled. |other_field_types| represents the rest of 144 // has already been autofilled. |other_field_types| represents the rest of
142 // form. 145 // form.
143 std::vector<Suggestion> GetProfileSuggestions( 146 std::vector<Suggestion> GetProfileSuggestions(
144 const AutofillType& type, 147 const AutofillType& type,
145 const base::string16& field_contents, 148 const base::string16& field_contents,
146 bool field_is_autofilled, 149 bool field_is_autofilled,
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 357
355 // An observer to listen for changes to prefs::kAutofillEnabled. 358 // An observer to listen for changes to prefs::kAutofillEnabled.
356 scoped_ptr<BooleanPrefMember> enabled_pref_; 359 scoped_ptr<BooleanPrefMember> enabled_pref_;
357 360
358 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); 361 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager);
359 }; 362 };
360 363
361 } // namespace autofill 364 } // namespace autofill
362 365
363 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ 366 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/autofill_options_handler.cc ('k') | components/autofill/core/browser/personal_data_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698