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

Unified Diff: chrome/browser/payments/payment_request_factory.h

Issue 2611253004: [Payment Request] Change the lifetime management of PaymentRequestImpl (Closed)
Patch Set: PaymentRequestImpl -> PaymentRequest Created 3 years, 11 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: chrome/browser/payments/payment_request_factory.h
diff --git a/chrome/browser/payments/payment_request_factory.h b/chrome/browser/payments/payment_request_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..457a2205eecf84d83e7d91b194e6a737ef437f46
--- /dev/null
+++ b/chrome/browser/payments/payment_request_factory.h
@@ -0,0 +1,26 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_FACTORY_H_
+#define CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_FACTORY_H_
+
+#include "components/payments/payment_request.mojom.h"
+#include "mojo/public/cpp/bindings/binding.h"
+
+namespace content {
+class WebContents;
+}
+
+namespace payments {
+
+// Will create a PaymentRequest attached to |web_contents|, based on the
+// contents of |request|. This is called everytime a new Mojo PaymentRequest is
+// created.
+void CreatePaymentRequestForWebContents(
+ content::WebContents* web_contents,
+ mojo::InterfaceRequest<payments::mojom::PaymentRequest> request);
+
+} // namespace payments
+
+#endif // CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_FACTORY_H_
« no previous file with comments | « chrome/browser/payments/chrome_payment_request_delegate.cc ('k') | chrome/browser/payments/payment_request_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698