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

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

Issue 2883563002: Refactor UKM interface for mojo-ification (Closed)
Patch Set: Fix uma_session_stats.cc 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 class PrefService; 22 class PrefService;
23 23
24 namespace ukm { 24 namespace ukm {
25 class UkmService; 25 class UkmRecorder;
26 } // namespace ukm 26 } // namespace ukm
27 27
28 namespace payments { 28 namespace payments {
29 29
30 class AddressNormalizer; 30 class AddressNormalizer;
31 class PaymentRequest; 31 class PaymentRequest;
32 32
33 class PaymentRequestDelegate { 33 class PaymentRequestDelegate {
34 public: 34 public:
35 virtual ~PaymentRequestDelegate() {} 35 virtual ~PaymentRequestDelegate() {}
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 result_delegate) = 0; 68 result_delegate) = 0;
69 69
70 // Returns a pointer to the address normalizer to use for the duration of this 70 // Returns a pointer to the address normalizer to use for the duration of this
71 // Payment Request. 71 // Payment Request.
72 virtual AddressNormalizer* GetAddressNormalizer() = 0; 72 virtual AddressNormalizer* GetAddressNormalizer() = 0;
73 73
74 // Creates a new region data loader that will self delete, or a test mock. 74 // Creates a new region data loader that will self delete, or a test mock.
75 virtual autofill::RegionDataLoader* GetRegionDataLoader() = 0; 75 virtual autofill::RegionDataLoader* GetRegionDataLoader() = 0;
76 76
77 // Returns a pointer to the UKM service. 77 // Returns a pointer to the UKM service.
78 virtual ukm::UkmService* GetUkmService() = 0; 78 virtual ukm::UkmRecorder* GetUkmRecorder() = 0;
79 79
80 // Returns the user's signed-in email address, or empty string if not signed 80 // Returns the user's signed-in email address, or empty string if not signed
81 // in. 81 // in.
82 virtual std::string GetAuthenticatedEmail() const = 0; 82 virtual std::string GetAuthenticatedEmail() const = 0;
83 83
84 // Gets the pref service for the browser context associated with this 84 // Gets the pref service for the browser context associated with this
85 // PaymentRequest. 85 // PaymentRequest.
86 virtual PrefService* GetPrefService() = 0; 86 virtual PrefService* GetPrefService() = 0;
87 }; 87 };
88 88
89 } // namespace payments 89 } // namespace payments
90 90
91 #endif // COMPONENTS_PAYMENTS_CORE_PAYMENT_REQUEST_DELEGATE_H_ 91 #endif // COMPONENTS_PAYMENTS_CORE_PAYMENT_REQUEST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698