// Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOCOMPLETE_AUTOCOMPLETE_TABLE_H_ #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOCOMPLETE_AUTOCOMPLETE_TABLE_H_ #include <optional> #include <string> #include <vector> #include "base/time/time.h" #include "components/autofill/core/browser/webdata/autocomplete/autocomplete_entry.h" #include "components/autofill/core/browser/webdata/autofill_change.h" #include "components/autofill/core/common/form_field_data.h" #include "components/webdata/common/web_database_table.h" class WebDatabase; namespace autofill { class AutocompleteChange; class AutocompleteEntry; class FormFieldData; // This class manages the Autocomplete table. The table in the SQLite database // is for historical reasons unfortunately named "autofill". // // Note: The database stores time in seconds, UTC. // ----------------------------------------------------------------------------- // autofill This table contains autocomplete history data (not // structured information). // // name The name of the input as specified in the html. // value The literal contents of the text field. // value_lower The contents of the text field made lower_case. // date_created The date on which the user first entered the string // |value| into a field of name |name|. // date_last_used The date on which the user last entered the string // |value| into a field of name |name|. // count How many times the user has entered the string |value| // in a field of name |name|. // ----------------------------------------------------------------------------- class AutocompleteTable : public WebDatabaseTable { … }; } // namespace autofill #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOCOMPLETE_AUTOCOMPLETE_TABLE_H_