blob: 457a2205eecf84d83e7d91b194e6a737ef437f46 [file] [log] [blame]
// 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_