Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_PAYMENTS_ANDROID_PAYMENT_METHOD_MANIFEST_TABLE_H_ | 5 #ifndef COMPONENTS_PAYMENTS_ANDROID_PAYMENT_METHOD_MANIFEST_TABLE_H_ |
| 6 #define COMPONENTS_PAYMENTS_ANDROID_PAYMENT_METHOD_MANIFEST_TABLE_H_ | 6 #define COMPONENTS_PAYMENTS_ANDROID_PAYMENT_METHOD_MANIFEST_TABLE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "components/webdata/common/web_database.h" | 11 #include "components/webdata/common/web_database.h" |
| 12 #include "components/webdata/common/web_database_table.h" | 12 #include "components/webdata/common/web_database_table.h" |
| 13 | 13 |
| 14 namespace payments { | 14 namespace payments { |
| 15 | 15 |
| 16 // This class manages payment_method_manifest table in SQLite database. It | 16 // This class manages payment_method_manifest table in SQLite database. It |
| 17 // expects the following schema. | 17 // expects the following schema. |
| 18 // | 18 // |
| 19 // payment_method_manifest The table stores WebAppManifestSection.id of the | 19 // payment_method_manifest The table stores WebAppManifestSection.id of the |
| 20 // supported web app in this payment method manifest. | 20 // supported web app in this payment method manifest. |
| 21 // Note that a payment method manifest might contain | 21 // Note that a payment method manifest might contain |
| 22 // multiple supported web apps ids. | 22 // multiple supported web apps ids. |
| 23 // | |
| 24 // expire_date The expire date in seconds. | |
|
please use gerrit instead
2017/04/27 15:45:18
Which epoch? Windows epoch starts in 1600. Unix ep
gogerald1
2017/04/27 18:08:39
Done.
| |
| 23 // method_name The method name. | 25 // method_name The method name. |
| 24 // web_app_id The supported web app id. | 26 // web_app_id The supported web app id. |
| 25 // (WebAppManifestSection.id). | 27 // (WebAppManifestSection.id). |
| 26 // | 28 // |
| 27 class PaymentMethodManifestTable : public WebDatabaseTable { | 29 class PaymentMethodManifestTable : public WebDatabaseTable { |
| 28 public: | 30 public: |
| 29 PaymentMethodManifestTable(); | 31 PaymentMethodManifestTable(); |
| 30 ~PaymentMethodManifestTable() override; | 32 ~PaymentMethodManifestTable() override; |
| 31 | 33 |
| 32 // Retrieves the PaymentMethodManifestTable* owned by |db|. | 34 // Retrieves the PaymentMethodManifestTable* owned by |db|. |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 47 // exists for this method. | 49 // exists for this method. |
| 48 std::vector<std::string> GetManifest(const std::string& payment_method); | 50 std::vector<std::string> GetManifest(const std::string& payment_method); |
| 49 | 51 |
| 50 private: | 52 private: |
| 51 DISALLOW_COPY_AND_ASSIGN(PaymentMethodManifestTable); | 53 DISALLOW_COPY_AND_ASSIGN(PaymentMethodManifestTable); |
| 52 }; | 54 }; |
| 53 | 55 |
| 54 } // namespace payments | 56 } // namespace payments |
| 55 | 57 |
| 56 #endif // COMPONENTS_PAYMENTS_ANDROID_PAYMENT_METHOD_MANIFEST_TABLE_H_ | 58 #endif // COMPONENTS_PAYMENTS_ANDROID_PAYMENT_METHOD_MANIFEST_TABLE_H_ |
| OLD | NEW |