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

Unified Diff: components/payments/core/payment_request_delegate.h

Issue 2876663002: [Web Payments] Add data attribution string to dialog (Closed)
Patch Set: Address comments, fix tests compile 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/payments/core/payment_prefs.cc ('k') | components/payments/core/test_payment_request_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/payments/core/payment_request_delegate.h
diff --git a/components/payments/core/payment_request_delegate.h b/components/payments/core/payment_request_delegate.h
index f85997984765f75ebc3adc4069e8ccef35dcfe39..864f0150141b2d07451ec1b52066ba8c4aabe3ba 100644
--- a/components/payments/core/payment_request_delegate.h
+++ b/components/payments/core/payment_request_delegate.h
@@ -19,6 +19,8 @@ class PersonalDataManager;
class RegionDataLoader;
} // namespace autofill
+class PrefService;
+
namespace ukm {
class UkmService;
} // namespace ukm
@@ -74,6 +76,14 @@ class PaymentRequestDelegate {
// Returns a pointer to the UKM service.
virtual ukm::UkmService* GetUkmService() = 0;
+
+ // Returns the user's signed-in email address, or empty string if not signed
+ // in.
+ virtual std::string GetAuthenticatedEmail() const = 0;
+
+ // Gets the pref service for the browser context associated with this
+ // PaymentRequest.
+ virtual PrefService* GetPrefService() = 0;
};
} // namespace payments
« no previous file with comments | « components/payments/core/payment_prefs.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