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

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

Issue 666133002: Standardize usage of virtual/override/final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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_DATA_MODEL_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DATA_MODEL_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DATA_MODEL_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DATA_MODEL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "components/autofill/core/browser/form_group.h" 11 #include "components/autofill/core/browser/form_group.h"
12 12
13 namespace autofill { 13 namespace autofill {
14 14
15 class AutofillType; 15 class AutofillType;
16 16
17 // This class is an interface for the primary data models that back Autofill. 17 // This class is an interface for the primary data models that back Autofill.
18 // The information in objects of this class is managed by the 18 // The information in objects of this class is managed by the
19 // PersonalDataManager. 19 // PersonalDataManager.
20 class AutofillDataModel : public FormGroup { 20 class AutofillDataModel : public FormGroup {
21 public: 21 public:
22 AutofillDataModel(const std::string& guid, const std::string& origin); 22 AutofillDataModel(const std::string& guid, const std::string& origin);
23 virtual ~AutofillDataModel(); 23 ~AutofillDataModel() override;
24 24
25 // Returns the string that should be auto-filled into a text field given the 25 // Returns the string that should be auto-filled into a text field given the
26 // |type| of that field, localized to the given |app_locale| if appropriate. 26 // |type| of that field, localized to the given |app_locale| if appropriate.
27 // If the data model supports multiple values for the given |type|, returns 27 // If the data model supports multiple values for the given |type|, returns
28 // the |variant|th value for the |type|. 28 // the |variant|th value for the |type|.
29 virtual base::string16 GetInfoForVariant(const AutofillType& type, 29 virtual base::string16 GetInfoForVariant(const AutofillType& type,
30 size_t variant, 30 size_t variant,
31 const std::string& app_locale) const; 31 const std::string& app_locale) const;
32 32
33 // Returns true if the data in this model was entered directly by the user, 33 // Returns true if the data in this model was entered directly by the user,
(...skipping 15 matching lines...) Expand all
49 // automatically aggregated, e.g. https://www.example.com/register, 49 // automatically aggregated, e.g. https://www.example.com/register,
50 // (b) some other non-empty string, which cannot be interpreted as a web 50 // (b) some other non-empty string, which cannot be interpreted as a web
51 // URL, identifying the origin for non-aggregated data, or 51 // URL, identifying the origin for non-aggregated data, or
52 // (c) an empty string, indicating that the origin for this data is unknown. 52 // (c) an empty string, indicating that the origin for this data is unknown.
53 std::string origin_; 53 std::string origin_;
54 }; 54 };
55 55
56 } // namespace autofill 56 } // namespace autofill
57 57
58 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DATA_MODEL_H_ 58 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DATA_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698