OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 package org.chromium.chrome.browser.payments; |
| 6 |
| 7 import android.content.Context; |
| 8 |
| 9 import org.chromium.content.browser.ServiceRegistry.ImplementationFactory; |
| 10 import org.chromium.mojom.payments.PaymentRequest; |
| 11 |
| 12 /** |
| 13 * Creates instances of PaymentRequest. |
| 14 */ |
| 15 public class PaymentRequestFactory implements ImplementationFactory<PaymentReque
st> { |
| 16 private final Context mApplicationContext; |
| 17 |
| 18 /** |
| 19 * Builds a factory for PaymentRequest. |
| 20 * |
| 21 * @param applicationContext The application context. |
| 22 */ |
| 23 public PaymentRequestFactory(Context applicationContext) { |
| 24 mApplicationContext = applicationContext; |
| 25 } |
| 26 |
| 27 @Override |
| 28 public PaymentRequest createImpl() { |
| 29 return new PaymentRequestDialog(mApplicationContext); |
| 30 } |
| 31 } |
OLD | NEW |