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

Side by Side Diff: components/payments/mojom/payment_app.mojom

Issue 2873683002: PaymentHandler: Implement GetAllPaymentApps(). (Closed)
Patch Set: PaymentHandler: Implement GetAllPaymentApps(). 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 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 module payments.mojom; 5 module payments.mojom;
6 6
7 import "components/payments/mojom/payment_request.mojom"; 7 import "components/payments/mojom/payment_request.mojom";
8 import "mojo/common/time.mojom"; 8 import "mojo/common/time.mojom";
9 import "url/mojo/url.mojom"; 9 import "url/mojo/url.mojom";
10 10
(...skipping 19 matching lines...) Expand all
30 30
31 enum PaymentHandlerStatus { 31 enum PaymentHandlerStatus {
32 SUCCESS, 32 SUCCESS,
33 NOT_IMPLEMENTED, 33 NOT_IMPLEMENTED,
34 NOT_FOUND, 34 NOT_FOUND,
35 NO_ACTIVE_WORKER, 35 NO_ACTIVE_WORKER,
36 STORAGE_OPERATION_FAILED, 36 STORAGE_OPERATION_FAILED,
37 }; 37 };
38 38
39 struct PaymentInstrument { 39 struct PaymentInstrument {
40 int64 registration_id;
Tom Sepez 2017/05/09 17:07:21 Where does this ID come from? Is unique to a rend
zino 2017/05/09 17:16:57 These three members are only used in browser side.
Tom Sepez 2017/05/09 17:37:25 I'm not sure the comment is helpful. I'm also not
zino 2017/05/10 17:54:42 I removed these members in mojom and then add a ne
41 string? instrument_key;
42 url.mojom.Url origin;
40 string name; 43 string name;
41 array<string> enabled_methods; 44 array<string> enabled_methods;
42 string stringified_capabilities; 45 string stringified_capabilities;
43 }; 46 };
44 47
45 interface PaymentManager { 48 interface PaymentManager {
46 Init(string service_worker_scope); 49 Init(string service_worker_scope);
47 SetManifest(PaymentAppManifest payment_app_manifest) 50 SetManifest(PaymentAppManifest payment_app_manifest)
48 => (PaymentAppManifestError error); 51 => (PaymentAppManifestError error);
49 GetManifest() 52 GetManifest()
(...skipping 24 matching lines...) Expand all
74 string method_name; 77 string method_name;
75 string stringified_details; 78 string stringified_details;
76 }; 79 };
77 80
78 // This interface is provided to pass a payment app response from payment 81 // This interface is provided to pass a payment app response from payment
79 // request event in renderer side to browser side by calling respondWith(). 82 // request event in renderer side to browser side by calling respondWith().
80 interface PaymentAppResponseCallback { 83 interface PaymentAppResponseCallback {
81 OnPaymentAppResponse(PaymentAppResponse response, 84 OnPaymentAppResponse(PaymentAppResponse response,
82 mojo.common.mojom.Time dispatch_event_time); 85 mojo.common.mojom.Time dispatch_event_time);
83 }; 86 };
OLDNEW
« no previous file with comments | « no previous file | content/browser/payments/payment_app.proto » ('j') | content/browser/payments/payment_app.proto » ('J')

Powered by Google App Engine
This is Rietveld 408576698