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

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

Issue 2815723002: [Web Payments] Add Spinners and timeout while waiting for UpdateWith (Closed)
Patch Set: Created 3 years, 8 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.h
diff --git a/components/payments/content/payment_request.h b/components/payments/content/payment_request.h
index ad2abed152af61c4dc94ff5cb9f5cb6bb1291d13..2fddd4f3b9c5e0d81780823c18aca373a3ed806e 100644
--- a/components/payments/content/payment_request.h
+++ b/components/payments/content/payment_request.h
@@ -9,6 +9,7 @@
#include <vector>
#include "base/macros.h"
+#include "base/timer/timer.h"
#include "components/payments/content/payment_request.mojom.h"
#include "components/payments/content/payment_request_spec.h"
#include "components/payments/content/payment_request_state.h"
@@ -89,6 +90,8 @@ class PaymentRequest : public mojom::PaymentRequest,
PaymentRequestState* state() { return state_.get(); }
private:
+ void StartWaitTimeout();
+
content::WebContents* web_contents_;
std::unique_ptr<PaymentRequestDelegate> delegate_;
// |manager_| owns this PaymentRequest.
@@ -102,6 +105,8 @@ class PaymentRequest : public mojom::PaymentRequest,
// May be null, must outlive this object.
ObserverForTest* observer_for_testing_;
+ base::OneShotTimer wait_timer_;
please use gerrit instead 2017/04/11 19:15:09 Not necessary. There's already a timer in Blink:
anthonyvd 2017/04/13 14:56:22 Ah! Thanks :)
+
DISALLOW_COPY_AND_ASSIGN(PaymentRequest);
};
« no previous file with comments | « chrome/browser/ui/views/payments/payment_sheet_view_controller.cc ('k') | components/payments/content/payment_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698