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

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

Issue 2556433002: PaymentApp: Implement GetAllManifests() in PaymentAppContext. (Closed)
Patch Set: addressed comments Created 4 years 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_context_impl.h
diff --git a/content/browser/payments/payment_app_context_impl.h b/content/browser/payments/payment_app_context_impl.h
index 824b5c27a7a5cd7f0e8216cfc961e720f49feaa6..8785bbcc8bd9945f3cba74bb5bb05876e2cefde6 100644
--- a/content/browser/payments/payment_app_context_impl.h
+++ b/content/browser/payments/payment_app_context_impl.h
@@ -11,6 +11,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "components/payments/payment_app.mojom.h"
+#include "content/browser/payments/payment_app_database.h"
#include "content/common/content_export.h"
#include "content/public/browser/payment_app_context.h"
@@ -66,12 +67,11 @@ class CONTENT_EXPORT PaymentAppContextImpl
PaymentAppDatabase* payment_app_database() const;
// PaymentAppContext implementation:
+ // Should be accessed only on the UI thread.
void GetAllManifests(const GetAllManifestsCallback& callback) override;
- protected:
- friend class PaymentAppManagerTest;
-
private:
+ friend class PaymentAppContentUnitTestBase;
friend class base::RefCountedThreadSafe<PaymentAppContextImpl>;
~PaymentAppContextImpl() override;
@@ -84,6 +84,10 @@ class CONTENT_EXPORT PaymentAppContextImpl
void ShutdownOnIO();
void DidShutdown();
+ void GetAllManifestsOnIO(const GetAllManifestsCallback& callback);
+ void DidGetAllManifestsOnIO(const GetAllManifestsCallback& callback,
+ PaymentAppDatabase::Manifests manifests);
+
// Only accessed on the IO thread.
std::unique_ptr<PaymentAppDatabase> payment_app_database_;
« no previous file with comments | « content/browser/payments/payment_app_content_unittest_base.cc ('k') | content/browser/payments/payment_app_context_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698