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

Side by Side Diff: third_party/WebKit/Source/modules/payments/PaymentRequestRespondWithObserver.h

Issue 2705293010: PaymentApp: Implement respondWith() in PaymentRequestEvent. (blink side) (Closed)
Patch Set: PaymentApp: Implement respondWith() in PaymentRequestEvent. (blink side) Created 3 years, 9 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef PaymentRequestRespondWithObserver_h
6 #define PaymentRequestRespondWithObserver_h
7
8 #include "modules/ModulesExport.h"
9 #include "modules/serviceworkers/RespondWithObserver.h"
10 #include "public/platform/modules/serviceworker/WebServiceWorkerResponseError.h"
11
12 namespace blink {
13
14 class ExecutionContext;
15 class ScriptValue;
16 class WaitUntilObserver;
17
18 // This class observes the service worker's handling of a PaymentRequestEvent
19 // and notifies the client.
20 class MODULES_EXPORT PaymentRequestRespondWithObserver final
21 : public RespondWithObserver {
22 public:
23 virtual ~PaymentRequestRespondWithObserver();
24
25 static PaymentRequestRespondWithObserver* create(ExecutionContext*,
26 int eventID,
27 WaitUntilObserver*);
28
29 void onResponseRejected(WebServiceWorkerResponseError) override;
30 void onResponseFulfilled(const ScriptValue&) override;
31 void onNoResponse() override;
32
33 DECLARE_VIRTUAL_TRACE();
34
35 private:
36 PaymentRequestRespondWithObserver(ExecutionContext*,
37 int eventID,
38 WaitUntilObserver*);
39 };
40
41 } // namespace blink
42
43 #endif // PaymentRequestRespondWithObserver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698