// Copyright 2017 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_PAYMENTS_CONTENT_PAYMENT_METHOD_MANIFEST_TABLE_H_ #define COMPONENTS_PAYMENTS_CONTENT_PAYMENT_METHOD_MANIFEST_TABLE_H_ #include <memory> #include <string> #include <vector> #include "base/strings/cstring_view.h" #include "base/time/time.h" #include "components/webdata/common/web_database_table.h" class WebDatabase; namespace payments { struct SecurePaymentConfirmationCredential; // This class manages Web Payment tables in SQLite database. It expects the // following schema. // // payment_method_manifest This table stores WebAppManifestSection.id of the // supported web app in this payment method manifest. // Note that a payment method manifest might contain // multiple supported web apps ids. // // expire_date The expire date in seconds from 1601-01-01 00:00:00 // UTC. // method_name The method name. // web_app_id The supported web app id. // (WebAppManifestSection.id). // // secure_payment_confirmation_instrument // This table stores credential information for secure // payment confirmation method. Historically it also // stored instrument information, hence the name and // the (no longer used) label and icon fields. // // credential_id The WebAuthn credential identifier blob. Primary key. // relying_party_id The relying party identifier string. // label The instrument human-readable label string. // icon The serialized SkBitmap blob. // data_created The creation date in micro seconds from 1601-01-01 // 00:00:00 UTC. class PaymentMethodManifestTable : public WebDatabaseTable { … }; } // namespace payments #endif // COMPONENTS_PAYMENTS_CONTENT_PAYMENT_METHOD_MANIFEST_TABLE_H_