|
PaymentHandler: Implement requestPermission().
The method is used to get a permission to install a new payment handler.
The spec[1] is still unclear but we can implement this API via experiences of
other APIs. We will also change the related spec context based on this patch.
This patch includes the following things according to the guide
in chrome/browser/permissions/permission_context_base.h
- Implement web-facing API in Blink. (but it's still behind a runtime flag)
- Add a new CONTENT_SETTINGS_TYPE_PAYMENT_HANDLER type.
- Add PaymentHandlerPermissionContext class that inherits from
PermissionContextBase and passes the new permission.
- Provide permission UI including infobar for Android.
- Test (payment_handler_permission_context_unittest.cc)
Related spec link:
[1] https://w3c.github.io/payment-handler/#requestpermission-method
BUG= 661608, 665949
Total comments: 30
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+387 lines, -15 lines) |
Patch |
|
M |
WATCHLISTS
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/BUILD.gn
|
View
|
1
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/android/resource_id.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/payments/OWNERS
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
|
A |
chrome/browser/payments/android/payment_handler_permission_infobar_delegate_android.h
|
View
|
1
|
1 chunk |
+38 lines, -0 lines |
0 comments
|
Download
|
|
A |
chrome/browser/payments/android/payment_handler_permission_infobar_delegate_android.cc
|
View
|
1
|
1 chunk |
+42 lines, -0 lines |
0 comments
|
Download
|
|
A |
chrome/browser/payments/payment_handler_permission_context.h
|
View
|
1
|
1 chunk |
+29 lines, -0 lines |
0 comments
|
Download
|
|
A |
chrome/browser/payments/payment_handler_permission_context.cc
|
View
|
1
|
1 chunk |
+24 lines, -0 lines |
0 comments
|
Download
|
|
A |
chrome/browser/payments/payment_handler_permission_context_unittest.cc
|
View
|
1
|
1 chunk |
+138 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/permissions/permission_infobar_delegate.cc
|
View
|
1
|
2 chunks |
+13 lines, -12 lines |
0 comments
|
Download
|
|
M |
chrome/browser/permissions/permission_manager.cc
|
View
|
1
|
3 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/permissions/permission_request_impl.cc
|
View
|
|
3 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/test/BUILD.gn
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
components/content_settings/core/browser/content_settings_registry.cc
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/content_settings/core/common/content_settings_types.h
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/infobars/core/infobar_delegate.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
components/payments_strings.grdp
|
View
|
1
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/browser/permissions/permission_service_impl.cc
|
View
|
1
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/public/browser/permission_type.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/payments/PaymentManager.h
|
View
|
1
|
3 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/payments/PaymentManager.cpp
|
View
|
1
|
3 chunks |
+44 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/payments/PaymentManager.idl
|
View
|
1
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/public/platform/modules/permissions/permission.mojom
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 11 (4 generated)
|