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

Issue 2133673002: Push API: Implement and ship PushSubscription.options (Closed)

Created:
4 years, 5 months ago by johnme
Modified:
4 years, 5 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, falken, haraken, harkness+watch_chromium.org, horo+watch_chromium.org, jam, johnme+watch_chromium.org, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, kinuko+serviceworker, michaeln, mlamouri+watch-content_chromium.org, nhiroki, Peter Beverloo, serviceworker-reviews, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Push API: Implement and ship PushSubscription.options Intent to implement and ship: https://groups.google.com/a/chromium.org/d/topic/blink-dev/ysEXU21Dn1Y/discussion Recent updates to the Push API renamed the PushSubscriptionOptions dictionary to PushSubscriptionOptionsInit, and instead introduced a PushSubscriptionOptions interface which should be exposed as an attribute on PushSubscription objects, reflecting the options that were passed in when subscribing. See commits: https://github.com/w3c/push-api/commit/3f7aaed45680818d6c472e6b6bce8854e0c9bff2 https://github.com/w3c/push-api/commit/5c25fee2dcaecb140d78566ac26207ee602a6844 https://github.com/w3c/push-api/commit/428f4c5c8993fc6af82f1ea9194e1bb1cbec2feb This patch implements those changes. BUG=626627 Committed: https://crrev.com/8882a829851f9bfe6e1857c9d8b0a7c679d89c00 Cr-Commit-Position: refs/heads/master@{#405752}

Patch Set 1 #

Total comments: 36

Patch Set 2 : Address review nits #

Patch Set 3 : De-indent namespace #

Patch Set 4 : Add MODULES_EXPORT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+393 lines, -137 lines) Patch
M content/browser/push_messaging/push_messaging_message_filter.h View 1 chunk +6 lines, -10 lines 0 comments Download
M content/browser/push_messaging/push_messaging_message_filter.cc View 1 5 chunks +28 lines, -37 lines 0 comments Download
M content/child/push_messaging/push_provider.h View 3 chunks +3 lines, -0 lines 0 comments Download
M content/child/push_messaging/push_provider.cc View 5 chunks +9 lines, -4 lines 0 comments Download
M content/common/push_messaging_messages.h View 2 chunks +6 lines, -3 lines 0 comments Download
M content/renderer/push_messaging/push_messaging_dispatcher.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/push_messaging/push_messaging_dispatcher.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/push_messaging/push-subscription-options.html View 1 1 chunk +145 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/modules.gypi View 1 4 chunks +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/push_messaging/PushManager.h View 2 chunks +3 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/modules/push_messaging/PushManager.cpp View 1 6 chunks +5 lines, -45 lines 0 comments Download
M third_party/WebKit/Source/modules/push_messaging/PushManager.idl View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/push_messaging/PushManagerTest.cpp View 3 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/push_messaging/PushSubscription.h View 1 3 chunks +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/push_messaging/PushSubscription.cpp View 4 chunks +3 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/push_messaging/PushSubscription.idl View 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/push_messaging/PushSubscriptionOptions.h View 1 2 3 1 chunk +48 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/push_messaging/PushSubscriptionOptions.cpp View 1 2 1 chunk +72 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/push_messaging/PushSubscriptionOptions.idl View 1 1 chunk +6 lines, -3 lines 0 comments Download
A + third_party/WebKit/Source/modules/push_messaging/PushSubscriptionOptionsInit.idl View 1 1 chunk +5 lines, -8 lines 0 comments Download
M third_party/WebKit/public/platform/modules/push_messaging/WebPushSubscription.h View 1 chunk +6 lines, -1 line 0 comments Download
M third_party/WebKit/public/platform/modules/push_messaging/WebPushSubscriptionOptions.h View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 31 (17 generated)
johnme
4 years, 5 months ago (2016-07-08 10:36:01 UTC) #3
Peter Beverloo
lgtm % comments https://chromiumcodereview.appspot.com/2133673002/diff/1/content/browser/push_messaging/push_messaging_message_filter.cc File content/browser/push_messaging/push_messaging_message_filter.cc (right): https://chromiumcodereview.appspot.com/2133673002/diff/1/content/browser/push_messaging/push_messaging_message_filter.cc#newcode759 content/browser/push_messaging/push_messaging_message_filter.cc:759: const GURL origin = registration->pattern().GetOrigin(); nit: ...
4 years, 5 months ago (2016-07-08 18:30:13 UTC) #7
johnme
Addressed nits - thanks! https://codereview.chromium.org/2133673002/diff/1/content/browser/push_messaging/push_messaging_message_filter.cc File content/browser/push_messaging/push_messaging_message_filter.cc (right): https://codereview.chromium.org/2133673002/diff/1/content/browser/push_messaging/push_messaging_message_filter.cc#newcode759 content/browser/push_messaging/push_messaging_message_filter.cc:759: const GURL origin = registration->pattern().GetOrigin(); ...
4 years, 5 months ago (2016-07-13 17:51:58 UTC) #8
Peter Beverloo
still lgtm https://codereview.chromium.org/2133673002/diff/1/third_party/WebKit/Source/modules/push_messaging/PushSubscriptionOptions.cpp File third_party/WebKit/Source/modules/push_messaging/PushSubscriptionOptions.cpp (right): https://codereview.chromium.org/2133673002/diff/1/third_party/WebKit/Source/modules/push_messaging/PushSubscriptionOptions.cpp#newcode19 third_party/WebKit/Source/modules/push_messaging/PushSubscriptionOptions.cpp:19: const int kMaxApplicationServerKeyLength = 255; On 2016/07/13 ...
4 years, 5 months ago (2016-07-14 14:40:02 UTC) #9
johnme
https://codereview.chromium.org/2133673002/diff/1/third_party/WebKit/Source/modules/push_messaging/PushSubscriptionOptions.cpp File third_party/WebKit/Source/modules/push_messaging/PushSubscriptionOptions.cpp (right): https://codereview.chromium.org/2133673002/diff/1/third_party/WebKit/Source/modules/push_messaging/PushSubscriptionOptions.cpp#newcode19 third_party/WebKit/Source/modules/push_messaging/PushSubscriptionOptions.cpp:19: const int kMaxApplicationServerKeyLength = 255; On 2016/07/14 14:40:01, Peter ...
4 years, 5 months ago (2016-07-14 17:01:22 UTC) #10
johnme
mkwst: please review content/common/push_messaging_messages.h rbyers: please review webexposed/ test changes as per intent to ship
4 years, 5 months ago (2016-07-14 18:05:02 UTC) #14
Rick Byers
webexposed LGTM
4 years, 5 months ago (2016-07-14 19:33:10 UTC) #17
Mike West
IPC LGTM (will y'all be mojoifying this at some point?)
4 years, 5 months ago (2016-07-15 09:00:30 UTC) #18
johnme
On 2016/07/15 09:00:30, Mike West wrote: > IPC LGTM (will y'all be mojoifying this at ...
4 years, 5 months ago (2016-07-15 11:12:14 UTC) #19
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/2133673002/60001
4 years, 5 months ago (2016-07-15 11:12:32 UTC) #23
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/2133673002/60001
4 years, 5 months ago (2016-07-15 12:59:30 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-07-15 13:14:01 UTC) #28
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-15 13:14:06 UTC) #29
commit-bot: I haz the power
4 years, 5 months ago (2016-07-15 13:15:24 UTC) #31
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/8882a829851f9bfe6e1857c9d8b0a7c679d89c00
Cr-Commit-Position: refs/heads/master@{#405752}

Powered by Google App Engine
This is Rietveld 408576698