// Copyright 2020 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_DATA_MODEL_AUTOFILL_STRUCTURED_ADDRESS_REGEX_PROVIDER_H_ #define COMPONENTS_AUTOFILL_CORE_BROWSER_DATA_MODEL_AUTOFILL_STRUCTURED_ADDRESS_REGEX_PROVIDER_H_ #include <memory> #include <string> #include "base/containers/flat_map.h" #include "base/no_destructor.h" #include "base/synchronization/lock.h" #include "third_party/re2/src/re2/re2.h" namespace autofill { // Enumeration of all regular expressions supported for matching and parsing // values in an AddressComponent tree. enum class RegEx { … }; // This singleton class builds and caches the regular expressions for value // parsing and characterization of values in an AddressComponent tree. // It also builds the foundation for acquiring expressions from different // sources. class StructuredAddressesRegExProvider { … }; } // namespace autofill #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_DATA_MODEL_AUTOFILL_STRUCTURED_ADDRESS_REGEX_PROVIDER_H_