Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: components/payments/core/payment_request_delegate.h

Issue 2851893002: [Payments] Record CanMakePayment metrics on Desktop. (Closed)
Patch Set: Windows Fix and Rebase Fix Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef COMPONENTS_PAYMENTS_CORE_PAYMENT_REQUEST_DELEGATE_H_ 5 #ifndef COMPONENTS_PAYMENTS_CORE_PAYMENT_REQUEST_DELEGATE_H_
6 #define COMPONENTS_PAYMENTS_CORE_PAYMENT_REQUEST_DELEGATE_H_ 6 #define COMPONENTS_PAYMENTS_CORE_PAYMENT_REQUEST_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "components/autofill/core/browser/payments/full_card_request.h" 12 #include "components/autofill/core/browser/payments/full_card_request.h"
13 13
14 class GURL; 14 class GURL;
15 15
16 namespace autofill { 16 namespace autofill {
17 class CreditCard; 17 class CreditCard;
18 class PersonalDataManager; 18 class PersonalDataManager;
19 class RegionDataLoader; 19 class RegionDataLoader;
20 } // namespace autofill 20 } // namespace autofill
21 21
22 namespace ukm {
23 class UkmService;
24 } // namespace ukm
25
22 namespace payments { 26 namespace payments {
23 27
24 class AddressNormalizer; 28 class AddressNormalizer;
25 class PaymentRequest; 29 class PaymentRequest;
26 30
27 class PaymentRequestDelegate { 31 class PaymentRequestDelegate {
28 public: 32 public:
29 virtual ~PaymentRequestDelegate() {} 33 virtual ~PaymentRequestDelegate() {}
30 34
31 // Shows the Payment Request dialog for the given |request|. 35 // Shows the Payment Request dialog for the given |request|.
(...skipping 28 matching lines...) Expand all
60 const autofill::CreditCard& credit_card, 64 const autofill::CreditCard& credit_card,
61 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate> 65 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate>
62 result_delegate) = 0; 66 result_delegate) = 0;
63 67
64 // Returns a pointer to the address normalizer to use for the duration of this 68 // Returns a pointer to the address normalizer to use for the duration of this
65 // Payment Request. 69 // Payment Request.
66 virtual AddressNormalizer* GetAddressNormalizer() = 0; 70 virtual AddressNormalizer* GetAddressNormalizer() = 0;
67 71
68 // Creates a new region data loader that will self delete, or a test mock. 72 // Creates a new region data loader that will self delete, or a test mock.
69 virtual autofill::RegionDataLoader* GetRegionDataLoader() = 0; 73 virtual autofill::RegionDataLoader* GetRegionDataLoader() = 0;
74
75 // Returns a pointer to the UKM service.
76 virtual ukm::UkmService* GetUkmService() = 0;
70 }; 77 };
71 78
72 } // namespace payments 79 } // namespace payments
73 80
74 #endif // COMPONENTS_PAYMENTS_CORE_PAYMENT_REQUEST_DELEGATE_H_ 81 #endif // COMPONENTS_PAYMENTS_CORE_PAYMENT_REQUEST_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/payments/core/journey_logger.cc ('k') | components/payments/core/test_payment_request_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698