Chromium Code Reviews| 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); |
| }; |