forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpayment_request_factory.h
27 lines (20 loc) · 1.06 KB
/
payment_request_factory.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// 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 "services/service_manager/public/cpp/bind_source_info.h"
#include "third_party/WebKit/public/platform/modules/payments/payment_request.mojom.h"
namespace content {
class RenderFrameHost;
}
namespace payments {
// Will create a PaymentRequest based on the contents of |request|. The
// |request| was initiated by the frame hosted by |render_frame_host|, which is
// inside of |web_contents|. This function is called every time a new instance
// of PaymentRequest is created in the renderer.
void CreatePaymentRequest(const service_manager::BindSourceInfo& source_info,
mojom::PaymentRequestRequest request,
content::RenderFrameHost* render_frame_host);
} // namespace payments
#endif // CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_FACTORY_H_