OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/browser/payments/payment_app_provider_impl.h" | 5 #include "content/browser/payments/payment_app_provider_impl.h" |
6 | 6 |
7 #include "content/browser/payments/payment_app_context_impl.h" | 7 #include "content/browser/payments/payment_app_context_impl.h" |
8 #include "content/browser/storage_partition_impl.h" | 8 #include "content/browser/storage_partition_impl.h" |
9 #include "content/public/browser/browser_context.h" | 9 #include "content/public/browser/browser_context.h" |
10 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 StoragePartitionImpl* partition = static_cast<StoragePartitionImpl*>( | 50 StoragePartitionImpl* partition = static_cast<StoragePartitionImpl*>( |
51 BrowserContext::GetDefaultStoragePartition(browser_context)); | 51 BrowserContext::GetDefaultStoragePartition(browser_context)); |
52 scoped_refptr<PaymentAppContextImpl> payment_app_context = | 52 scoped_refptr<PaymentAppContextImpl> payment_app_context = |
53 partition->GetPaymentAppContext(); | 53 partition->GetPaymentAppContext(); |
54 | 54 |
55 BrowserThread::PostTask( | 55 BrowserThread::PostTask( |
56 BrowserThread::IO, FROM_HERE, | 56 BrowserThread::IO, FROM_HERE, |
57 base::Bind(&GetAllManifestsOnIO, payment_app_context, callback)); | 57 base::Bind(&GetAllManifestsOnIO, payment_app_context, callback)); |
58 } | 58 } |
59 | 59 |
| 60 void PaymentAppProviderImpl::InvokePaymentApp( |
| 61 BrowserContext* browser_context, |
| 62 int64_t registration_id, |
| 63 payments::mojom::PaymentAppRequestDataPtr data) { |
| 64 NOTIMPLEMENTED(); |
| 65 } |
| 66 |
60 PaymentAppProviderImpl::PaymentAppProviderImpl() {} | 67 PaymentAppProviderImpl::PaymentAppProviderImpl() {} |
61 | 68 |
62 PaymentAppProviderImpl::~PaymentAppProviderImpl() {} | 69 PaymentAppProviderImpl::~PaymentAppProviderImpl() {} |
63 | 70 |
64 } // namespace content | 71 } // namespace content |
OLD | NEW |