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

Issue 2438103002: Add postMessage APIs to the support lib (Closed)

Created:
4 years, 2 months ago by Yusuf
Modified:
4 years, 1 month ago
Reviewers:
Benoit L
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add postMessage APIs to the support lib Adds CustomTabsSession#validateOriginForPostMessage, CustomTabsSession#postMessage, CustomTabsCallback#onMessageChannelCreated, CustomTabsCallback#onPostMessage for sending an receiving postMessage requests to the mainframe of the initial url. BUG=657915 Committed: https://github.com/GoogleChrome/custom-tabs-client/commit/3cf33a835e4cd777cea7399ecd99e452ad292dae

Patch Set 1 #

Patch Set 2 : compile fixes #

Patch Set 3 : Overridden callback in CustomTabsSessionToken #

Total comments: 22

Patch Set 4 : lizeb@ comments #

Total comments: 28

Patch Set 5 : lizeb@ comments #

Total comments: 4

Patch Set 6 : Comments #

Patch Set 7 : Made onMessageChannelReady synchronized as well #

Patch Set 8 : removed unnecessary import #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -10 lines) Patch
M customtabs/src/android/support/customtabs/CustomTabsCallback.java View 1 2 3 4 5 6 2 chunks +24 lines, -1 line 0 comments Download
M customtabs/src/android/support/customtabs/CustomTabsClient.java View 1 2 3 4 5 6 2 chunks +45 lines, -6 lines 0 comments Download
M customtabs/src/android/support/customtabs/CustomTabsService.java View 1 2 3 4 5 4 chunks +49 lines, -0 lines 0 comments Download
M customtabs/src/android/support/customtabs/CustomTabsSession.java View 1 2 3 4 5 2 chunks +18 lines, -0 lines 0 comments Download
M customtabs/src/android/support/customtabs/CustomTabsSessionToken.java View 1 2 3 4 5 6 3 chunks +25 lines, -0 lines 0 comments Download
M customtabs/src/android/support/customtabs/ICustomTabsCallback.aidl View 1 2 3 4 5 6 1 chunk +5 lines, -3 lines 0 comments Download
M customtabs/src/android/support/customtabs/ICustomTabsService.aidl View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
Yusuf
4 years, 2 months ago (2016-10-20 18:04:35 UTC) #2
Benoit L
https://codereview.chromium.org/2438103002/diff/40001/customtabs/src/android/support/customtabs/CustomTabsCallback.java File customtabs/src/android/support/customtabs/CustomTabsCallback.java (right): https://codereview.chromium.org/2438103002/diff/40001/customtabs/src/android/support/customtabs/CustomTabsCallback.java#newcode57 customtabs/src/android/support/customtabs/CustomTabsCallback.java:57: /** Thinking about it, I wonder whether we should ...
4 years, 1 month ago (2016-11-07 17:50:38 UTC) #3
Yusuf
https://codereview.chromium.org/2438103002/diff/40001/customtabs/src/android/support/customtabs/CustomTabsCallback.java File customtabs/src/android/support/customtabs/CustomTabsCallback.java (right): https://codereview.chromium.org/2438103002/diff/40001/customtabs/src/android/support/customtabs/CustomTabsCallback.java#newcode57 customtabs/src/android/support/customtabs/CustomTabsCallback.java:57: /** On 2016/11/07 17:50:38, Benoit L wrote: > Thinking ...
4 years, 1 month ago (2016-11-07 18:56:42 UTC) #4
Benoit L
Sorry, I missed things in the previous round. Mostly nits, and a comment about synchronization. ...
4 years, 1 month ago (2016-11-08 16:27:07 UTC) #5
Yusuf
https://codereview.chromium.org/2438103002/diff/60001/customtabs/src/android/support/customtabs/CustomTabsCallback.java File customtabs/src/android/support/customtabs/CustomTabsCallback.java (right): https://codereview.chromium.org/2438103002/diff/60001/customtabs/src/android/support/customtabs/CustomTabsCallback.java#newcode23 customtabs/src/android/support/customtabs/CustomTabsCallback.java:23: * A callback class for custom tabs client to ...
4 years, 1 month ago (2016-11-08 18:59:10 UTC) #6
Benoit L
https://codereview.chromium.org/2438103002/diff/60001/customtabs/src/android/support/customtabs/CustomTabsCallback.java File customtabs/src/android/support/customtabs/CustomTabsCallback.java (right): https://codereview.chromium.org/2438103002/diff/60001/customtabs/src/android/support/customtabs/CustomTabsCallback.java#newcode23 customtabs/src/android/support/customtabs/CustomTabsCallback.java:23: * A callback class for custom tabs client to ...
4 years, 1 month ago (2016-11-09 10:11:00 UTC) #7
Yusuf
https://codereview.chromium.org/2438103002/diff/60001/customtabs/src/android/support/customtabs/CustomTabsCallback.java File customtabs/src/android/support/customtabs/CustomTabsCallback.java (right): https://codereview.chromium.org/2438103002/diff/60001/customtabs/src/android/support/customtabs/CustomTabsCallback.java#newcode23 customtabs/src/android/support/customtabs/CustomTabsCallback.java:23: * A callback class for custom tabs client to ...
4 years, 1 month ago (2016-11-09 18:29:21 UTC) #8
Benoit L
LGTM, thanks!
4 years, 1 month ago (2016-11-10 09:48:09 UTC) #9
Yusuf
https://codereview.chromium.org/2438103002/diff/60001/customtabs/src/android/support/customtabs/ICustomTabsCallback.aidl File customtabs/src/android/support/customtabs/ICustomTabsCallback.aidl (right): https://codereview.chromium.org/2438103002/diff/60001/customtabs/src/android/support/customtabs/ICustomTabsCallback.aidl#newcode28 customtabs/src/android/support/customtabs/ICustomTabsCallback.aidl:28: oneway void onMessageChannelReady(in Uri origin, in Bundle extras) = ...
4 years, 1 month ago (2016-11-10 18:48:22 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2438103002/140001
4 years, 1 month ago (2016-11-11 18:17:51 UTC) #13
commit-bot: I haz the power
4 years, 1 month ago (2016-11-11 18:19:09 UTC) #15
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://github.com/GoogleChrome/custom-tabs-client/commit/3cf33a835e4cd777cea...

Powered by Google App Engine
This is Rietveld 408576698