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

Unified Diff: components/payments/content/payment_request_web_contents_manager.h

Issue 2713033004: Layered component for web payments (Closed)
Patch Set: Rebase Created 3 years, 10 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: components/payments/content/payment_request_web_contents_manager.h
diff --git a/components/payments/payment_request_web_contents_manager.h b/components/payments/content/payment_request_web_contents_manager.h
similarity index 91%
rename from components/payments/payment_request_web_contents_manager.h
rename to components/payments/content/payment_request_web_contents_manager.h
index 42e26f4a9ced86d595467d307d3f3796669377fd..52323140d10066fc4556979d210f565555e5adac 100644
--- a/components/payments/payment_request_web_contents_manager.h
+++ b/components/payments/content/payment_request_web_contents_manager.h
@@ -5,15 +5,21 @@
#ifndef COMPONENTS_PAYMENTS_PAYMENT_REQUEST_WEB_CONTENTS_MANAGER_H_
#define COMPONENTS_PAYMENTS_PAYMENT_REQUEST_WEB_CONTENTS_MANAGER_H_
+#include <memory>
#include <unordered_map>
-#include "components/payments/payment_request.h"
-#include "components/payments/payment_request.mojom.h"
+#include "base/macros.h"
+#include "components/payments/content/payment_request.mojom.h"
#include "content/public/browser/web_contents_user_data.h"
#include "mojo/public/cpp/bindings/binding.h"
+namespace content {
+class WebContents;
+}
+
namespace payments {
+class PaymentRequest;
class PaymentRequestDelegate;
// This class owns the PaymentRequest associated with a given WebContents.
@@ -54,6 +60,8 @@ class PaymentRequestWebContentsManager
// the requests themselves call DestroyRequest().
std::unordered_map<PaymentRequest*, std::unique_ptr<PaymentRequest>>
payment_requests_;
+
+ DISALLOW_COPY_AND_ASSIGN(PaymentRequestWebContentsManager);
};
} // namespace payments

Powered by Google App Engine
This is Rietveld 408576698