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

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

Issue 2845753003: [Payments] Set cached manifest expiration date (Closed)
Patch Set: improve comments Created 3 years, 7 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
« no previous file with comments | « no previous file | components/payments/android/payment_manifest_web_data_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PAYMENT_MANIFEST_WEB_DATA_SERVICE_H_ 5 #ifndef COMPONENTS_PAYMENTS_ANDROID_PAYMENT_MANIFEST_WEB_DATA_SERVICE_H_
6 #define COMPONENTS_PAYMENTS_ANDROID_PAYMENT_MANIFEST_WEB_DATA_SERVICE_H_ 6 #define COMPONENTS_PAYMENTS_ANDROID_PAYMENT_MANIFEST_WEB_DATA_SERVICE_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "components/payments/android/payment_method_manifest_table.h" 9 #include "components/payments/android/payment_method_manifest_table.h"
10 #include "components/payments/android/web_app_manifest_section_table.h" 10 #include "components/payments/android/web_app_manifest_section_table.h"
(...skipping 27 matching lines...) Expand all
38 WebDataServiceConsumer* consumer); 38 WebDataServiceConsumer* consumer);
39 39
40 // Gets the |payment_method|'s manifest. 40 // Gets the |payment_method|'s manifest.
41 WebDataServiceBase::Handle GetPaymentMethodManifest( 41 WebDataServiceBase::Handle GetPaymentMethodManifest(
42 const std::string& payment_method, 42 const std::string& payment_method,
43 WebDataServiceConsumer* consumer); 43 WebDataServiceConsumer* consumer);
44 44
45 private: 45 private:
46 ~PaymentManifestWebDataService() override; 46 ~PaymentManifestWebDataService() override;
47 47
48 void RemoveExpiredData(WebDatabase* db);
49
48 WebDatabase::State AddPaymentWebAppManifestImpl( 50 WebDatabase::State AddPaymentWebAppManifestImpl(
49 const std::vector<mojom::WebAppManifestSectionPtr>& manifest, 51 const std::vector<mojom::WebAppManifestSectionPtr>& manifest,
50 WebDatabase* db); 52 WebDatabase* db);
51 WebDatabase::State AddPaymentMethodManifestImpl( 53 WebDatabase::State AddPaymentMethodManifestImpl(
52 const std::string& payment_method, 54 const std::string& payment_method,
53 const std::vector<std::string>& app_package_names, 55 const std::vector<std::string>& app_package_names,
54 WebDatabase* db); 56 WebDatabase* db);
55 57
56 std::unique_ptr<WDTypedResult> GetPaymentWebAppManifestImpl( 58 std::unique_ptr<WDTypedResult> GetPaymentWebAppManifestImpl(
57 const std::string& web_app, 59 const std::string& web_app,
58 WebDatabase* db); 60 WebDatabase* db);
59 std::unique_ptr<WDTypedResult> GetPaymentMethodManifestImpl( 61 std::unique_ptr<WDTypedResult> GetPaymentMethodManifestImpl(
60 const std::string& payment_method, 62 const std::string& payment_method,
61 WebDatabase* db); 63 WebDatabase* db);
62 64
63 DISALLOW_COPY_AND_ASSIGN(PaymentManifestWebDataService); 65 DISALLOW_COPY_AND_ASSIGN(PaymentManifestWebDataService);
64 }; 66 };
65 67
66 } // namespace payments 68 } // namespace payments
67 69
68 #endif // COMPONENTS_PAYMENTS_ANDROID_PAYMENT_MANIFEST_WEB_DATA_SERVICE_H_ 70 #endif // COMPONENTS_PAYMENTS_ANDROID_PAYMENT_MANIFEST_WEB_DATA_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | components/payments/android/payment_manifest_web_data_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698