Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(749)

Side by Side Diff: components/payments/android/web_app_manifest_section_table.h

Issue 2845753003: [Payments] Set cached manifest expiration date (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698