| 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_
|
|
|