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

Unified Diff: content/browser/payments/payment_app_database.h

Issue 2875493003: PaymentHandler: Remove PaymentAppManifest and PaymentAppOption. (Closed)
Patch Set: global-interface-listing 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/payments/payment_app_database.h
diff --git a/content/browser/payments/payment_app_database.h b/content/browser/payments/payment_app_database.h
index 36a23315718b834afc76f4adeedb1777bed3e468..dce398811ab3b1b8d776766db97f09833052fdc9 100644
--- a/content/browser/payments/payment_app_database.h
+++ b/content/browser/payments/payment_app_database.h
@@ -25,16 +25,6 @@ class ServiceWorkerRegistration;
class CONTENT_EXPORT PaymentAppDatabase {
public:
- using WriteManifestCallback =
- base::OnceCallback<void(payments::mojom::PaymentAppManifestError)>;
- using ReadManifestCallback =
- base::OnceCallback<void(payments::mojom::PaymentAppManifestPtr,
- payments::mojom::PaymentAppManifestError)>;
- using ManifestWithID =
- std::pair<int64_t, payments::mojom::PaymentAppManifestPtr>;
- using Manifests = std::vector<ManifestWithID>;
- using ReadAllManifestsCallback = base::OnceCallback<void(Manifests)>;
-
using Instruments = std::vector<std::unique_ptr<StoredPaymentInstrument>>;
using PaymentApps = std::map<GURL, Instruments>;
using ReadAllPaymentAppsCallback = base::OnceCallback<void(PaymentApps)>;
@@ -58,12 +48,6 @@ class CONTENT_EXPORT PaymentAppDatabase {
scoped_refptr<ServiceWorkerContextWrapper> service_worker_context);
~PaymentAppDatabase();
- void WriteManifest(const GURL& scope,
- payments::mojom::PaymentAppManifestPtr manifest,
- WriteManifestCallback callback);
- void ReadManifest(const GURL& scope, ReadManifestCallback callback);
- void ReadAllManifests(ReadAllManifestsCallback callback);
-
void ReadAllPaymentApps(ReadAllPaymentAppsCallback callback);
void DeletePaymentInstrument(const GURL& scope,
@@ -85,30 +69,6 @@ class CONTENT_EXPORT PaymentAppDatabase {
ClearPaymentInstrumentsCallback callback);
private:
- // WriteManifest callbacks
- void DidFindRegistrationToWriteManifest(
- payments::mojom::PaymentAppManifestPtr manifest,
- WriteManifestCallback callback,
- ServiceWorkerStatusCode status,
- scoped_refptr<ServiceWorkerRegistration> registration);
- void DidWriteManifest(WriteManifestCallback callback,
- ServiceWorkerStatusCode status);
-
- // ReadManifest callbacks
- void DidFindRegistrationToReadManifest(
- ReadManifestCallback callback,
- ServiceWorkerStatusCode status,
- scoped_refptr<ServiceWorkerRegistration> registration);
- void DidReadManifest(ReadManifestCallback callback,
- const std::vector<std::string>& data,
- ServiceWorkerStatusCode status);
-
- // ReadAllManifests callbacks
- void DidReadAllManifests(
- ReadAllManifestsCallback callback,
- const std::vector<std::pair<int64_t, std::string>>& raw_data,
- ServiceWorkerStatusCode status);
-
// ReadAllPaymentApps callbacks
void DidReadAllPaymentApps(
ReadAllPaymentAppsCallback callback,
« no previous file with comments | « content/browser/payments/payment_app_context_impl.h ('k') | content/browser/payments/payment_app_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698