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

Unified Diff: components/payments/content/payment_request_state.h

Issue 2876663002: [Web Payments] Add data attribution string to dialog (Closed)
Patch Set: 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
Index: components/payments/content/payment_request_state.h
diff --git a/components/payments/content/payment_request_state.h b/components/payments/content/payment_request_state.h
index ece3bc084541b1d6529cf14d2d1e9949adfad888..b471955eed89e742970331c3b81c56f1fe5a9d6b 100644
--- a/components/payments/content/payment_request_state.h
+++ b/components/payments/content/payment_request_state.h
@@ -24,6 +24,10 @@ class PersonalDataManager;
class RegionDataLoader;
} // namespace autofill
+namespace content {
+class BrowserContext;
+}
+
namespace payments {
class PaymentInstrument;
@@ -95,6 +99,9 @@ class PaymentRequestState : public PaymentResponseHelper::Delegate,
// false for "https://bobpay.com".
bool AreRequestedMethodsSupported() const;
+ // Returns authenticated user email, or empty string.
+ std::string GetAuthenticatedEmail() const;
+
void AddObserver(Observer* observer);
void RemoveObserver(Observer* observer);
@@ -156,6 +163,8 @@ class PaymentRequestState : public PaymentResponseHelper::Delegate,
autofill::PersonalDataManager* GetPersonalDataManager();
autofill::RegionDataLoader* GetRegionDataLoader();
+ content::BrowserContext* GetBrowserContext();
+
Delegate* delegate() { return delegate_; }
PaymentsProfileComparator* profile_comparator() {

Powered by Google App Engine
This is Rietveld 408576698