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_WEB_APP_MANIFEST_SECTION_TABLE_H_ | 5 #ifndef COMPONENTS_PAYMENTS_ANDROID_WEB_APP_MANIFEST_SECTION_TABLE_H_ |
6 #define COMPONENTS_PAYMENTS_ANDROID_WEB_APP_MANIFEST_SECTION_TABLE_H_ | 6 #define COMPONENTS_PAYMENTS_ANDROID_WEB_APP_MANIFEST_SECTION_TABLE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "components/payments/mojom/payment_manifest_parser.mojom.h" | 11 #include "components/payments/mojom/payment_manifest_parser.mojom.h" |
12 #include "components/webdata/common/web_database.h" | 12 #include "components/webdata/common/web_database.h" |
13 #include "components/webdata/common/web_database_table.h" | 13 #include "components/webdata/common/web_database_table.h" |
14 | 14 |
15 namespace payments { | 15 namespace payments { |
16 | 16 |
17 // This class manages web_app_manifest_section table in SQLite database. It | 17 // This class manages web_app_manifest_section table in SQLite database. It |
18 // expects the following schema. | 18 // expects the following schema. |
19 // The interfaces should only be accessed on DB thread. | 19 // The interfaces should only be accessed on DB thread. |
20 // | 20 // |
21 // web_app_manifest_section The table stores the contents in | 21 // web_app_manifest_section The table stores the contents in |
22 // WebAppManifestSection. | 22 // WebAppManifestSection. |
23 // | 23 // |
| 24 // expire_date The data expire date in seconds. |
24 // id The package name of the app. | 25 // id The package name of the app. |
25 // min_version Minimum version number of the app. | 26 // min_version Minimum version number of the app. |
26 // fingerprints The result of SHA256(signing certificate bytes) for | 27 // fingerprints The result of SHA256(signing certificate bytes) for |
27 // each certificate in the app. | 28 // each certificate in the app. |
28 // | 29 // |
29 class WebAppManifestSectionTable : public WebDatabaseTable { | 30 class WebAppManifestSectionTable : public WebDatabaseTable { |
30 public: | 31 public: |
31 WebAppManifestSectionTable(); | 32 WebAppManifestSectionTable(); |
32 ~WebAppManifestSectionTable() override; | 33 ~WebAppManifestSectionTable() override; |
33 | 34 |
(...skipping 16 matching lines...) Expand all Loading... |
50 std::vector<mojom::WebAppManifestSectionPtr> GetWebAppManifest( | 51 std::vector<mojom::WebAppManifestSectionPtr> GetWebAppManifest( |
51 const std::string& web_app); | 52 const std::string& web_app); |
52 | 53 |
53 private: | 54 private: |
54 DISALLOW_COPY_AND_ASSIGN(WebAppManifestSectionTable); | 55 DISALLOW_COPY_AND_ASSIGN(WebAppManifestSectionTable); |
55 }; | 56 }; |
56 | 57 |
57 } // namespace payments | 58 } // namespace payments |
58 | 59 |
59 #endif // COMPONENTS_PAYMENTS_ANDROID_WEB_APP_MANIFEST_SECTION_TABLE_H_ | 60 #endif // COMPONENTS_PAYMENTS_ANDROID_WEB_APP_MANIFEST_SECTION_TABLE_H_ |
OLD | NEW |