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

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

Issue 2876663002: [Web Payments] Add data attribution string to dialog (Closed)
Patch Set: Address comments 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
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 // 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
69 // Payment Request. 69 // Payment Request.
70 virtual AddressNormalizer* GetAddressNormalizer() = 0; 70 virtual AddressNormalizer* GetAddressNormalizer() = 0;
71 71
72 // 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.
73 virtual autofill::RegionDataLoader* GetRegionDataLoader() = 0; 73 virtual autofill::RegionDataLoader* GetRegionDataLoader() = 0;
74 74
75 // Returns a pointer to the UKM service. 75 // Returns a pointer to the UKM service.
76 virtual ukm::UkmService* GetUkmService() = 0; 76 virtual ukm::UkmService* GetUkmService() = 0;
77
78 // Returns the user's signed-in email address, or empty string if not signed
79 // in.
80 virtual std::string GetAuthenticatedEmail() const = 0;
81
82 // Gets the pref service for the browser context associated with this
83 // PaymentRequest.
84 virtual PrefService* GetPrefService() = 0;
Mathieu 2017/05/11 13:47:55 does this just work without fwd-declaring PrefServ
anthonyvd 2017/05/11 17:46:28 It does but probably only by pure luck. Added the
77 }; 85 };
78 86
79 } // namespace payments 87 } // namespace payments
80 88
81 #endif // COMPONENTS_PAYMENTS_CORE_PAYMENT_REQUEST_DELEGATE_H_ 89 #endif // COMPONENTS_PAYMENTS_CORE_PAYMENT_REQUEST_DELEGATE_H_
OLDNEW
« components/payments/core/payment_prefs.h ('K') | « components/payments/core/payment_prefs.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698