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

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

Issue 2506093002: PaymentApp: Implement PaymentAppManager.getManifest(). (Closed)
Patch Set: PaymentApp: Implement PaymentAppManager.getManifest(). Created 4 years 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PaymentAppManager_h 5 #ifndef PaymentAppManager_h
6 #define PaymentAppManager_h 6 #define PaymentAppManager_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptWrappable.h" 9 #include "bindings/core/v8/ScriptWrappable.h"
10 #include "components/payments/payment_app.mojom-blink.h" 10 #include "components/payments/payment_app.mojom-blink.h"
(...skipping 24 matching lines...) Expand all
35 ScriptPromise setManifest(ScriptState*, const PaymentAppManifest&); 35 ScriptPromise setManifest(ScriptState*, const PaymentAppManifest&);
36 ScriptPromise getManifest(ScriptState*); 36 ScriptPromise getManifest(ScriptState*);
37 37
38 DECLARE_TRACE(); 38 DECLARE_TRACE();
39 39
40 private: 40 private:
41 PaymentAppManager(ScriptState*, ServiceWorkerRegistration*); 41 PaymentAppManager(ScriptState*, ServiceWorkerRegistration*);
42 42
43 void onSetManifest(ScriptPromiseResolver*, 43 void onSetManifest(ScriptPromiseResolver*,
44 payments::mojom::blink::PaymentAppManifestError); 44 payments::mojom::blink::PaymentAppManifestError);
45 void onGetManifest(ScriptPromiseResolver*,
46 payments::mojom::blink::PaymentAppManifestPtr,
47 payments::mojom::blink::PaymentAppManifestError);
45 void onServiceConnectionError(); 48 void onServiceConnectionError();
46 49
47 Member<ServiceWorkerRegistration> m_registration; 50 Member<ServiceWorkerRegistration> m_registration;
48 payments::mojom::blink::PaymentAppManagerPtr m_manager; 51 payments::mojom::blink::PaymentAppManagerPtr m_manager;
49 }; 52 };
50 53
51 } // namespace blink 54 } // namespace blink
52 55
53 #endif // PaymentAppManager_h 56 #endif // PaymentAppManager_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698