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

Issue 1240763002: CallbackPromiseAdapter types should be more compatible with WebCallbacks (3/3). (Closed)

Created:
5 years, 5 months ago by yhirano
Modified:
5 years, 4 months ago
CC:
blink-reviews, mvanouwerkerk+watch_chromium.org, jsbell+serviceworker_chromium.org, serviceworker-reviews, vivekg_samsung, mlamouri+watch-blink_chromium.org, johnme+watch_chromium.org, tzik, nhiroki, falken, vivekg, dglazkov+blink, scheib+watch_chromium.org, blink-reviews-bindings_chromium.org, michaeln, horo+watch_chromium.org, kinuko+serviceworker, peter+watch_chromium.org, mlamouri (slow - plz ping), scottmg
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

CallbackPromiseAdapter types should be more compatible with WebCallbacks (3/3). This series of CLs makes CallbackPromiseAdapter (CPA) more compatible with WebCallbacks (WC) in terms of type parameters. Before this CL, CPA<S, T> corresponded to WC<S::WebType*, T::WebType*>. CPAs took ownership of passed pointers but there was no place to represent that in WebCallbacks. This series of CLs changes that: CPA<S, T> correspond to WC<S::WebType, T::WebType>. CPA users can specify if he/she wants the parameter ownership by specifying the type parameter. For example, setting S::WebType to OwnPtr<X> means it takes ownership. Setting S::WebType to |const X&| means it doesn't take ownership. WebCallbacks is exposed to chromium side, so we use WebPassOwnPtr as the counterpart of PassOwnPtr. [1] https://codereview.chromium.org/1234603003/ [2] https://codereview.chromium.org/1235083006/ [3] This CL. BUG=493531 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200234

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : rebase #

Patch Set 6 : #

Total comments: 6

Patch Set 7 : #

Total comments: 7

Patch Set 8 : #

Total comments: 4

Patch Set 9 : #

Patch Set 10 : rebase #

Patch Set 11 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+259 lines, -378 lines) Patch
M Source/bindings/core/v8/CallbackPromiseAdapter.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +154 lines, -197 lines 0 comments Download
M Source/modules/bluetooth/BluetoothError.h View 2 chunks +2 lines, -4 lines 0 comments Download
M Source/modules/bluetooth/BluetoothError.cpp View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/bluetooth/ConvertWebVectorToArrayBuffer.h View 2 chunks +2 lines, -4 lines 0 comments Download
M Source/modules/bluetooth/ConvertWebVectorToArrayBuffer.cpp View 1 chunk +3 lines, -4 lines 0 comments Download
M Source/modules/cachestorage/Cache.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -4 lines 0 comments Download
M Source/modules/cachestorage/CacheStorageError.h View 2 chunks +2 lines, -4 lines 0 comments Download
M Source/modules/cachestorage/CacheStorageError.cpp View 1 chunk +0 lines, -5 lines 0 comments Download
M Source/modules/cachestorage/CacheTest.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/cachestorage/InspectorCacheStorageAgent.cpp View 1 2 3 8 chunks +10 lines, -11 lines 0 comments Download
M Source/modules/geofencing/Geofencing.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -4 lines 0 comments Download
M Source/modules/geofencing/GeofencingError.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/geofencing/GeofencingError.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -3 lines 0 comments Download
M Source/modules/presentation/PresentationAvailability.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/presentation/PresentationAvailability.cpp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/presentation/PresentationError.h View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M Source/modules/presentation/PresentationError.cpp View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M Source/modules/push_messaging/PushError.h View 2 chunks +2 lines, -4 lines 0 comments Download
M Source/modules/push_messaging/PushError.cpp View 1 chunk +7 lines, -7 lines 0 comments Download
M Source/modules/push_messaging/PushPermissionStatusCallbacks.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/push_messaging/PushSubscriptionCallbacks.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerClients.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -5 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerContainer.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -3 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerError.h View 2 chunks +2 lines, -4 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerError.cpp View 1 chunk +12 lines, -12 lines 0 comments Download
M public/platform/WebCallbacks.h View 1 2 3 2 chunks +8 lines, -60 lines 0 comments Download
M public/platform/WebGeofencingProvider.h View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M public/platform/WebServiceWorkerCache.h View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M public/platform/WebServiceWorkerClientsClaimCallbacks.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M public/platform/WebServiceWorkerClientsInfo.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M public/platform/WebServiceWorkerRegistration.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M public/platform/modules/bluetooth/WebBluetooth.h View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -6 lines 0 comments Download
M public/platform/modules/notifications/WebNotificationManager.h View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -2 lines 0 comments Download
M public/platform/modules/presentation/WebPresentationClient.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M public/platform/modules/push_messaging/WebPushProvider.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 37 (10 generated)
yhirano
5 years, 5 months ago (2015-07-15 06:18:46 UTC) #2
kinuko
https://codereview.chromium.org/1240763002/diff/100001/Source/bindings/core/v8/CallbackPromiseAdapter.h File Source/bindings/core/v8/CallbackPromiseAdapter.h (right): https://codereview.chromium.org/1240763002/diff/100001/Source/bindings/core/v8/CallbackPromiseAdapter.h#newcode42 Source/bindings/core/v8/CallbackPromiseAdapter.h:42: nit: for files that heavily use templates I prefer ...
5 years, 4 months ago (2015-07-26 15:15:09 UTC) #3
yhirano
https://codereview.chromium.org/1240763002/diff/100001/Source/bindings/core/v8/CallbackPromiseAdapter.h File Source/bindings/core/v8/CallbackPromiseAdapter.h (right): https://codereview.chromium.org/1240763002/diff/100001/Source/bindings/core/v8/CallbackPromiseAdapter.h#newcode42 Source/bindings/core/v8/CallbackPromiseAdapter.h:42: On 2015/07/26 15:15:08, kinuko wrote: > nit: for files ...
5 years, 4 months ago (2015-07-27 05:30:02 UTC) #4
kinuko
Ok, lgtm https://codereview.chromium.org/1240763002/diff/100001/Source/bindings/core/v8/CallbackPromiseAdapter.h File Source/bindings/core/v8/CallbackPromiseAdapter.h (right): https://codereview.chromium.org/1240763002/diff/100001/Source/bindings/core/v8/CallbackPromiseAdapter.h#newcode42 Source/bindings/core/v8/CallbackPromiseAdapter.h:42: On 2015/07/27 05:30:02, yhirano wrote: > On ...
5 years, 4 months ago (2015-07-27 05:59:00 UTC) #5
yhirano
https://codereview.chromium.org/1240763002/diff/120001/Source/bindings/core/v8/CallbackPromiseAdapter.h File Source/bindings/core/v8/CallbackPromiseAdapter.h (right): https://codereview.chromium.org/1240763002/diff/120001/Source/bindings/core/v8/CallbackPromiseAdapter.h#newcode48 Source/bindings/core/v8/CallbackPromiseAdapter.h:48: // - If S or T don't have WebType ...
5 years, 4 months ago (2015-07-27 06:10:27 UTC) #6
kinuko
https://codereview.chromium.org/1240763002/diff/120001/Source/bindings/core/v8/CallbackPromiseAdapter.h File Source/bindings/core/v8/CallbackPromiseAdapter.h (right): https://codereview.chromium.org/1240763002/diff/120001/Source/bindings/core/v8/CallbackPromiseAdapter.h#newcode49 Source/bindings/core/v8/CallbackPromiseAdapter.h:49: // is used. For example, CallbackPromiseAdapter<bool, void> is a ...
5 years, 4 months ago (2015-07-27 07:43:54 UTC) #7
yhirano
PTAL. mlamouri@ for modules/presentation/, modules/app_banner, publc/platform/modules/app_banner, public/platform/modules/presentation. mvanouwerkerk@ for modules/push_messaging, public/platform/modules/push_messaging. scheib@ for public/platform/modules/bluetooth. mek@ ...
5 years, 4 months ago (2015-07-27 12:32:05 UTC) #9
haraken
bindings/ LGTM
5 years, 4 months ago (2015-07-27 12:46:39 UTC) #10
Marijn Kruisselbrink
geofencing LGTM
5 years, 4 months ago (2015-07-27 16:57:24 UTC) #11
Peter Beverloo
notifications and push lgtm https://codereview.chromium.org/1240763002/diff/140001/public/platform/modules/push_messaging/WebPushProvider.h File public/platform/modules/push_messaging/WebPushProvider.h (right): https://codereview.chromium.org/1240763002/diff/140001/public/platform/modules/push_messaging/WebPushProvider.h#newcode19 public/platform/modules/push_messaging/WebPushProvider.h:19: using WebPushPermissionStatusCallbacks = WebCallbacks<WebPushPermissionStatus*, WebPushError*>; ...
5 years, 4 months ago (2015-07-27 17:30:10 UTC) #12
scheib
With comment suggestion, bluetooth LGTM https://codereview.chromium.org/1240763002/diff/140001/Source/bindings/core/v8/CallbackPromiseAdapter.h File Source/bindings/core/v8/CallbackPromiseAdapter.h (right): https://codereview.chromium.org/1240763002/diff/140001/Source/bindings/core/v8/CallbackPromiseAdapter.h#newcode67 Source/bindings/core/v8/CallbackPromiseAdapter.h:67: // - trivial WebType ...
5 years, 4 months ago (2015-07-27 17:39:18 UTC) #13
Michael van Ouwerkerk
push_messaging lgtm
5 years, 4 months ago (2015-07-28 10:13:51 UTC) #14
yhirano
I reverted app_banner related changes because it no longer uses CallbackPromiseAdapter. avavyvod@, can you take ...
5 years, 4 months ago (2015-07-29 04:22:35 UTC) #19
yhirano
ping
5 years, 4 months ago (2015-08-04 03:36:53 UTC) #20
whywhat
On 2015/08/04 at 03:36:53, yhirano wrote: > ping presentation/ lgtm
5 years, 4 months ago (2015-08-05 12:48:29 UTC) #21
yhirano
tkent@, can you take a look at public/ changes?
5 years, 4 months ago (2015-08-06 01:12:22 UTC) #23
tkent
public lgtm
5 years, 4 months ago (2015-08-06 02:13:56 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1240763002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1240763002/260001
5 years, 4 months ago (2015-08-10 04:33:58 UTC) #27
commit-bot: I haz the power
Committed patchset #11 (id:260001) as https://src.chromium.org/viewvc/blink?view=rev&revision=200234
5 years, 4 months ago (2015-08-10 05:55:37 UTC) #28
Sébastien Marchand
This is breaking the VS2015 builder: FAILED: ninja -t msvc -e environment.x86 -- "C:\b\depot_tools\win_toolchain\vs_files\VC\bin\amd64_x86\cl.exe" /nologo ...
5 years, 4 months ago (2015-08-11 20:51:51 UTC) #30
Sébastien Marchand
(here's the URL of the builder: http://build.chromium.org/p/chromium.fyi/builders/Chromium%20Builder)
5 years, 4 months ago (2015-08-11 20:52:24 UTC) #31
brucedawson
I tried poking at this to figure out what's going on but I'm not having ...
5 years, 4 months ago (2015-08-12 00:41:30 UTC) #32
yhirano
On 2015/08/12 00:41:30, brucedawson wrote: > I tried poking at this to figure out what's ...
5 years, 4 months ago (2015-08-12 02:01:25 UTC) #33
Sébastien Marchand
If you want I can give you access to a Windows VM with everything already ...
5 years, 4 months ago (2015-08-12 02:12:21 UTC) #34
yhirano
On 2015/08/12 02:12:21, Sébastien Marchand wrote: > If you want I can give you access ...
5 years, 4 months ago (2015-08-12 02:20:42 UTC) #35
Sébastien Marchand
I just sent you the instructions. (FYI, the machine is hosted on Compute Engine) On ...
5 years, 4 months ago (2015-08-12 14:07:21 UTC) #36
brucedawson
5 years, 4 months ago (2015-08-12 22:53:03 UTC) #37
Message was sent while issue was closed.
I created preprocessed reproes of bluetoothgattcharacteristic.cpp (one each for
VS 2013 and VS 2015) which I used to file a bug with Microsoft.

If it turns out not to be a VS bug we can always close it.

https://connect.microsoft.com/VisualStudio/feedback/details/1660945

Powered by Google App Engine
This is Rietveld 408576698