Chromium Code Reviews| 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..2804a18f9c6d9558ea8d07825d876ddf652d39fa |
| --- /dev/null |
| +++ b/chrome/browser/payments/payment_request_factory.h |
| @@ -0,0 +1,26 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
|
please use gerrit instead
2017/01/06 21:49:09
2017
Mathieu
2017/01/07 05:03:07
Done.
|
| +// 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 PaymentRequestImpl 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_ |