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

Issue 1002293005: [PresentationAPI] Plumbing send() from PresentationSession IDL to platform/. (Closed)

Created:
5 years, 9 months ago by USE s.singapati at gmail.com
Modified:
5 years, 8 months ago
CC:
blink-reviews, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

[PresentationAPI] Plumbing send() from PresentationSession IDL to platform/. This patch adds plumbing for DOMString, DOMArrayBuffer and DOMArrayBufferView. This is part of a three-side change: 1. This (Blink) CL 2. Chromium CL: https://codereview.chromium.org/1037483003 3. Cleanup: Making the send methods pure virtual in WebPresentationClient. BUG=459008 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194302

Patch Set 1 #

Total comments: 9

Patch Set 2 : Defined an empty method instead of pure virtual and fixed other review comments. #

Patch Set 3 : Added BLINK_ASSERT_NOT_REACHED in WebPresentationClient. #

Patch Set 4 : Modified postMessage idl to take SerializedScriptValue argument #

Patch Set 5 : Added plumbing for ArrayBuffer and ArrayBufferView. #

Total comments: 14

Patch Set 6 : Renamed postMessage() api to send(), other review fixes. #

Total comments: 6

Patch Set 7 : Added ASSERTs. #

Total comments: 2

Patch Set 8 : Forward declare the Blob class. #

Total comments: 12

Patch Set 9 : Refactored send for ArrayBuffer and ArrayBufferView. Removed send(Blob) for now. #

Patch Set 10 : Blob cleanup. #

Total comments: 22

Patch Set 11 : Renamed url argument and other fixes. #

Patch Set 12 : change char* to uint8* for ArrayBuffer data for mojo purpose. #

Total comments: 2

Patch Set 13 : Allow sending ArrayBuffer with zero bytes of data. #

Patch Set 14 : Fix layout test: change postMessage to send. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -4 lines) Patch
M LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/presentation/PresentationController.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M Source/modules/presentation/PresentationController.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +14 lines, -0 lines 0 comments Download
M Source/modules/presentation/PresentationSession.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +8 lines, -1 line 0 comments Download
M Source/modules/presentation/PresentationSession.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +42 lines, -1 line 0 comments Download
M Source/modules/presentation/PresentationSession.idl View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -1 line 0 comments Download
M public/platform/modules/presentation/WebPresentationClient.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 51 (10 generated)
USE s.singapati at gmail.com
Hi, Please provide your comments. This patch only covers postMessage(DOMString) case. But I am working ...
5 years, 9 months ago (2015-03-25 11:34:44 UTC) #2
mark a. foltz
On 2015/03/25 11:34:44, s.singapati wrote: > Hi, Please provide your comments. > > This patch ...
5 years, 9 months ago (2015-03-25 19:52:18 UTC) #3
USE s.singapati at gmail.com
5 years, 9 months ago (2015-03-25 20:08:35 UTC) #5
Peter Beverloo
Anton should take a look at this. Nonetheless, thank you for the patch!! :-) https://codereview.chromium.org/1002293005/diff/1/Source/modules/presentation/PresentationSession.cpp ...
5 years, 9 months ago (2015-03-25 20:20:29 UTC) #6
whywhat
lgtm % my & Peter's comments re: signatures, I think we should try to be ...
5 years, 9 months ago (2015-03-26 00:14:19 UTC) #7
whywhat
https://codereview.chromium.org/1002293005/diff/1/public/platform/modules/presentation/WebPresentationClient.h File public/platform/modules/presentation/WebPresentationClient.h (right): https://codereview.chromium.org/1002293005/diff/1/public/platform/modules/presentation/WebPresentationClient.h#newcode44 public/platform/modules/presentation/WebPresentationClient.h:44: virtual void postMessage(const WebString& url, const WebString& presentationId, const ...
5 years, 9 months ago (2015-03-26 00:19:22 UTC) #8
Peter Beverloo
On 2015/03/26 00:19:22, whywhat wrote: > https://codereview.chromium.org/1002293005/diff/1/public/platform/modules/presentation/WebPresentationClient.h > File public/platform/modules/presentation/WebPresentationClient.h (right): > > https://codereview.chromium.org/1002293005/diff/1/public/platform/modules/presentation/WebPresentationClient.h#newcode44 > ...
5 years, 9 months ago (2015-03-26 00:21:51 UTC) #9
USE s.singapati at gmail.com
https://codereview.chromium.org/1002293005/diff/1/Source/modules/presentation/PresentationSession.cpp File Source/modules/presentation/PresentationSession.cpp (right): https://codereview.chromium.org/1002293005/diff/1/Source/modules/presentation/PresentationSession.cpp#newcode42 Source/modules/presentation/PresentationSession.cpp:42: void throwInvalidStateError(ExceptionState& exceptionState) On 2015/03/26 00:14:19, whywhat wrote: > ...
5 years, 9 months ago (2015-03-26 11:57:41 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1002293005/40001
5 years, 9 months ago (2015-03-26 14:03:11 UTC) #13
Peter Beverloo
What part of WebRTC is this trying to align with? This does not sound OK ...
5 years, 9 months ago (2015-03-26 16:39:41 UTC) #14
whywhat
On 2015/03/26 16:39:41, Peter Beverloo wrote: > What part of WebRTC is this trying to ...
5 years, 9 months ago (2015-03-26 17:19:09 UTC) #16
Peter Beverloo
On 2015/03/26 17:19:09, whywhat wrote: > On 2015/03/26 16:39:41, Peter Beverloo wrote: > > What ...
5 years, 9 months ago (2015-03-26 17:31:19 UTC) #17
USE s.singapati at gmail.com
On 2015/03/26 17:31:19, Peter Beverloo wrote: > On 2015/03/26 17:19:09, whywhat wrote: > > On ...
5 years, 9 months ago (2015-03-26 21:46:16 UTC) #18
mark a. foltz
On 2015/03/26 21:46:16, s.singapati wrote: > On 2015/03/26 17:31:19, Peter Beverloo wrote: > > On ...
5 years, 8 months ago (2015-03-31 18:07:55 UTC) #19
Peter Beverloo
On 2015/03/31 18:07:55, mark a. foltz wrote: > On 2015/03/26 21:46:16, s.singapati wrote: > > ...
5 years, 8 months ago (2015-03-31 18:14:24 UTC) #20
USE s.singapati at gmail.com
Hi Anton and Peter, Thanks for the discussion and comments. I have left |postMessage| as ...
5 years, 8 months ago (2015-04-02 12:26:50 UTC) #21
whywhat
On 2015/04/02 12:26:50, s.singapati wrote: > Hi Anton and Peter, Thanks for the discussion and ...
5 years, 8 months ago (2015-04-02 13:18:35 UTC) #22
USE s.singapati at gmail.com
On 2015/04/02 13:18:35, whywhat wrote: > On 2015/04/02 12:26:50, s.singapati wrote: > > Hi Anton ...
5 years, 8 months ago (2015-04-02 17:43:22 UTC) #23
mark a. foltz
https://codereview.chromium.org/1002293005/diff/80001/Source/modules/presentation/PresentationController.cpp File Source/modules/presentation/PresentationController.cpp (right): https://codereview.chromium.org/1002293005/diff/80001/Source/modules/presentation/PresentationController.cpp#newcode115 Source/modules/presentation/PresentationController.cpp:115: void PresentationController::postMessage(const String& url, const String& presentationId, const String& ...
5 years, 8 months ago (2015-04-02 20:26:39 UTC) #24
USE s.singapati at gmail.com
https://codereview.chromium.org/1002293005/diff/80001/Source/modules/presentation/PresentationController.cpp File Source/modules/presentation/PresentationController.cpp (right): https://codereview.chromium.org/1002293005/diff/80001/Source/modules/presentation/PresentationController.cpp#newcode115 Source/modules/presentation/PresentationController.cpp:115: void PresentationController::postMessage(const String& url, const String& presentationId, const String& ...
5 years, 8 months ago (2015-04-07 15:49:00 UTC) #25
mark a. foltz
https://codereview.chromium.org/1002293005/diff/100001/Source/modules/presentation/PresentationSession.cpp File Source/modules/presentation/PresentationSession.cpp (right): https://codereview.chromium.org/1002293005/diff/100001/Source/modules/presentation/PresentationSession.cpp#newcode114 Source/modules/presentation/PresentationSession.cpp:114: // TODO(): To be implemented. Throw a DOMException here ...
5 years, 8 months ago (2015-04-08 23:14:36 UTC) #26
USE s.singapati at gmail.com
https://codereview.chromium.org/1002293005/diff/100001/Source/modules/presentation/PresentationSession.cpp File Source/modules/presentation/PresentationSession.cpp (right): https://codereview.chromium.org/1002293005/diff/100001/Source/modules/presentation/PresentationSession.cpp#newcode114 Source/modules/presentation/PresentationSession.cpp:114: // TODO(): To be implemented. On 2015/04/08 23:14:35, mark ...
5 years, 8 months ago (2015-04-09 04:36:13 UTC) #27
USE s.singapati at gmail.com
https://codereview.chromium.org/1002293005/diff/100001/Source/modules/presentation/PresentationSession.cpp File Source/modules/presentation/PresentationSession.cpp (right): https://codereview.chromium.org/1002293005/diff/100001/Source/modules/presentation/PresentationSession.cpp#newcode114 Source/modules/presentation/PresentationSession.cpp:114: // TODO(): To be implemented. On 2015/04/08 23:14:35, mark ...
5 years, 8 months ago (2015-04-09 14:37:12 UTC) #28
mark a. foltz
lgtm You will need a lgtm from one of the Blink OWNERS (Peter/Mounir). I believe ...
5 years, 8 months ago (2015-04-10 18:31:09 UTC) #29
mark a. foltz
5 years, 8 months ago (2015-04-10 18:44:55 UTC) #30
USE s.singapati at gmail.com
Currently there is very basic layout test for Presentation API which tests only for presence ...
5 years, 8 months ago (2015-04-13 09:38:23 UTC) #31
whywhat
Re: tests - it's hard to write LayoutTests without having a mock PresentationClient interface implemented ...
5 years, 8 months ago (2015-04-13 12:58:45 UTC) #32
USE s.singapati at gmail.com
https://codereview.chromium.org/1002293005/diff/140001/Source/modules/presentation/PresentationSession.cpp File Source/modules/presentation/PresentationSession.cpp (right): https://codereview.chromium.org/1002293005/diff/140001/Source/modules/presentation/PresentationSession.cpp#newcode107 Source/modules/presentation/PresentationSession.cpp:107: if (message.isNull() || message.isEmpty()) On 2015/04/13 12:58:45, whywhat wrote: ...
5 years, 8 months ago (2015-04-13 16:45:36 UTC) #33
mlamouri (slow - plz ping)
lgtm with all the changes applied. https://codereview.chromium.org/1002293005/diff/180001/Source/modules/presentation/PresentationController.cpp File Source/modules/presentation/PresentationController.cpp (right): https://codereview.chromium.org/1002293005/diff/180001/Source/modules/presentation/PresentationController.cpp#newcode115 Source/modules/presentation/PresentationController.cpp:115: void PresentationController::send(const String& ...
5 years, 8 months ago (2015-04-16 10:06:30 UTC) #34
USE s.singapati at gmail.com
Now sending "const uint8_t*" instead of ""const char*" for ArrayBuffer data, to avoid possible reinterpret_casting ...
5 years, 8 months ago (2015-04-16 16:10:02 UTC) #35
mlamouri (slow - plz ping)
https://codereview.chromium.org/1002293005/diff/180001/Source/modules/presentation/PresentationSession.cpp File Source/modules/presentation/PresentationSession.cpp (right): https://codereview.chromium.org/1002293005/diff/180001/Source/modules/presentation/PresentationSession.cpp#newcode108 Source/modules/presentation/PresentationSession.cpp:108: return; On 2015/04/16 at 16:10:02, s.singapati wrote: > On ...
5 years, 8 months ago (2015-04-16 17:14:18 UTC) #36
whywhat
https://codereview.chromium.org/1002293005/diff/180001/Source/modules/presentation/PresentationSession.cpp File Source/modules/presentation/PresentationSession.cpp (right): https://codereview.chromium.org/1002293005/diff/180001/Source/modules/presentation/PresentationSession.cpp#newcode108 Source/modules/presentation/PresentationSession.cpp:108: return; On 2015/04/16 10:06:30, Mounir Lamouri wrote: > Why ...
5 years, 8 months ago (2015-04-16 17:29:45 UTC) #37
USE s.singapati at gmail.com
https://codereview.chromium.org/1002293005/diff/220001/Source/modules/presentation/PresentationSession.cpp File Source/modules/presentation/PresentationSession.cpp (right): https://codereview.chromium.org/1002293005/diff/220001/Source/modules/presentation/PresentationSession.cpp#newcode133 Source/modules/presentation/PresentationSession.cpp:133: return; On 2015/04/16 17:14:17, Mounir Lamouri wrote: > Could ...
5 years, 8 months ago (2015-04-17 16:03:56 UTC) #38
USE s.singapati at gmail.com
Can we proceed with latest patchset or any other comments?
5 years, 8 months ago (2015-04-21 19:43:42 UTC) #39
mark a. foltz
On 2015/04/21 19:43:42, s.singapati wrote: > Can we proceed with latest patchset or any other ...
5 years, 8 months ago (2015-04-22 16:52:25 UTC) #40
USE s.singapati at gmail.com
On 2015/04/22 16:52:25, mark a. foltz wrote: > On 2015/04/21 19:43:42, s.singapati wrote: > > ...
5 years, 8 months ago (2015-04-22 18:51:12 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1002293005/240001
5 years, 8 months ago (2015-04-23 07:50:57 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/60447)
5 years, 8 months ago (2015-04-23 12:16:09 UTC) #46
USE s.singapati at gmail.com
On 2015/04/23 12:16:09, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 8 months ago (2015-04-23 12:28:11 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1002293005/260001
5 years, 8 months ago (2015-04-23 14:08:45 UTC) #50
commit-bot: I haz the power
5 years, 8 months ago (2015-04-23 15:22:52 UTC) #51
Message was sent while issue was closed.
Committed patchset #14 (id:260001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=194302

Powered by Google App Engine
This is Rietveld 408576698