| 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 "components/payments/content/payment_request_web_contents_manager.h" | 5 #include "components/payments/content/payment_request_web_contents_manager.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| 11 #include "components/payments/content/payment_request.h" | 11 #include "components/payments/content/payment_request.h" |
| 12 #include "components/payments/content/payment_request_delegate.h" | 12 #include "components/payments/core/payment_request_delegate.h" |
| 13 #include "content/public/browser/web_contents.h" | 13 #include "content/public/browser/web_contents.h" |
| 14 | 14 |
| 15 DEFINE_WEB_CONTENTS_USER_DATA_KEY(payments::PaymentRequestWebContentsManager); | 15 DEFINE_WEB_CONTENTS_USER_DATA_KEY(payments::PaymentRequestWebContentsManager); |
| 16 | 16 |
| 17 namespace payments { | 17 namespace payments { |
| 18 | 18 |
| 19 PaymentRequestWebContentsManager::~PaymentRequestWebContentsManager() {} | 19 PaymentRequestWebContentsManager::~PaymentRequestWebContentsManager() {} |
| 20 | 20 |
| 21 PaymentRequestWebContentsManager* | 21 PaymentRequestWebContentsManager* |
| 22 PaymentRequestWebContentsManager::GetOrCreateForWebContents( | 22 PaymentRequestWebContentsManager::GetOrCreateForWebContents( |
| (...skipping 17 matching lines...) Expand all Loading... |
| 40 } | 40 } |
| 41 | 41 |
| 42 void PaymentRequestWebContentsManager::DestroyRequest(PaymentRequest* request) { | 42 void PaymentRequestWebContentsManager::DestroyRequest(PaymentRequest* request) { |
| 43 payment_requests_.erase(request); | 43 payment_requests_.erase(request); |
| 44 } | 44 } |
| 45 | 45 |
| 46 PaymentRequestWebContentsManager::PaymentRequestWebContentsManager( | 46 PaymentRequestWebContentsManager::PaymentRequestWebContentsManager( |
| 47 content::WebContents* web_contents) {} | 47 content::WebContents* web_contents) {} |
| 48 | 48 |
| 49 } // namespace payments | 49 } // namespace payments |
| OLD | NEW |