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

Issue 728763003: Introduce a //content/ API for dispatching notificationclick events. (Closed)

Created:
6 years ago by Peter Beverloo
Modified:
6 years ago
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, mlamouri+watch-content_chromium.org, tzik, serviceworker-reviews, jam, kinuko+serviceworker, nhiroki, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, horo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Introduce a //content/ API for dispatching notificationclick events. This patch introduces a new public API to the content layer which should be used for dispatching notificationclick events to a specific service worker. The logic required for selecing the appropriate service worker is included in the implementation of this class. We're two CLs away from being able to test this stuff, which will be done in the form of both layout tests and browser tests. BUG=432527 Committed: https://crrev.com/d69823a1bbdf71ecfcd09b0fbebea373f853d008 Cr-Commit-Position: refs/heads/master@{#307465}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : add a newline #

Total comments: 8

Patch Set 4 : address comments #

Total comments: 2

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+329 lines, -12 lines) Patch
A content/browser/notifications/notification_event_dispatcher_impl.h View 1 2 3 1 chunk +40 lines, -0 lines 0 comments Download
A content/browser/notifications/notification_event_dispatcher_impl.cc View 1 2 3 1 chunk +171 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_version.h View 2 chunks +5 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_version.cc View 2 chunks +7 lines, -3 lines 0 comments Download
M content/common/service_worker/service_worker_messages.h View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A content/public/browser/notification_event_dispatcher.h View 1 2 3 4 1 chunk +50 lines, -0 lines 0 comments Download
A content/public/common/persistent_notification_status.h View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
M content/public/common/show_desktop_notification_params.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/service_worker/service_worker_script_context.h View 2 chunks +5 lines, -2 lines 0 comments Download
M content/renderer/service_worker/service_worker_script_context.cc View 2 chunks +14 lines, -3 lines 0 comments Download

Messages

Total messages: 22 (6 generated)
Peter Beverloo
+mvanouwerkerk, who hates his weekends anyway.
6 years ago (2014-12-05 19:23:37 UTC) #2
Michael van Ouwerkerk
https://codereview.chromium.org/728763003/diff/40001/content/browser/notifications/notification_event_dispatcher_impl.cc File content/browser/notifications/notification_event_dispatcher_impl.cc (right): https://codereview.chromium.org/728763003/diff/40001/content/browser/notifications/notification_event_dispatcher_impl.cc#newcode23 content/browser/notifications/notification_event_dispatcher_impl.cc:23: // post a task to call |done_callback| on the ...
6 years ago (2014-12-08 15:13:43 UTC) #3
Peter Beverloo
PTAL https://codereview.chromium.org/728763003/diff/40001/content/browser/notifications/notification_event_dispatcher_impl.cc File content/browser/notifications/notification_event_dispatcher_impl.cc (right): https://codereview.chromium.org/728763003/diff/40001/content/browser/notifications/notification_event_dispatcher_impl.cc#newcode23 content/browser/notifications/notification_event_dispatcher_impl.cc:23: // post a task to call |done_callback| on ...
6 years ago (2014-12-08 17:27:08 UTC) #4
Michael van Ouwerkerk
lgtm
6 years ago (2014-12-08 18:55:33 UTC) #5
Peter Beverloo
Cool, thanks! +michaeln for Service Workers changes. +avi for content/ review. This is about the ...
6 years ago (2014-12-08 18:57:44 UTC) #7
Avi (use Gerrit)
lgtm owner stamp
6 years ago (2014-12-08 19:28:18 UTC) #8
michaeln
sw lgtm
6 years ago (2014-12-09 02:18:38 UTC) #9
Peter Beverloo
+mkwst for IPC
6 years ago (2014-12-09 11:34:54 UTC) #11
Mike West
https://codereview.chromium.org/728763003/diff/60001/content/common/service_worker/service_worker_messages.h File content/common/service_worker/service_worker_messages.h (right): https://codereview.chromium.org/728763003/diff/60001/content/common/service_worker/service_worker_messages.h#newcode382 content/common/service_worker/service_worker_messages.h:382: content::ShowDesktopNotificationHostMsgParams) It's not clear what aspects of this struct ...
6 years ago (2014-12-09 11:47:30 UTC) #12
Peter Beverloo
https://codereview.chromium.org/728763003/diff/60001/content/common/service_worker/service_worker_messages.h File content/common/service_worker/service_worker_messages.h (right): https://codereview.chromium.org/728763003/diff/60001/content/common/service_worker/service_worker_messages.h#newcode382 content/common/service_worker/service_worker_messages.h:382: content::ShowDesktopNotificationHostMsgParams) On 2014/12/09 11:47:30, Mike West wrote: > It's ...
6 years ago (2014-12-09 11:51:59 UTC) #13
Mike West
On 2014/12/09 11:51:59, Peter Beverloo wrote: > https://codereview.chromium.org/728763003/diff/60001/content/common/service_worker/service_worker_messages.h > File content/common/service_worker/service_worker_messages.h (right): > > https://codereview.chromium.org/728763003/diff/60001/content/common/service_worker/service_worker_messages.h#newcode382 ...
6 years ago (2014-12-09 12:00:56 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/728763003/60001
6 years ago (2014-12-09 12:13:34 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg/builds/40945)
6 years ago (2014-12-09 12:53:16 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/728763003/80001
6 years ago (2014-12-09 13:16:45 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
6 years ago (2014-12-09 14:07:08 UTC) #21
commit-bot: I haz the power
6 years ago (2014-12-09 14:07:51 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/d69823a1bbdf71ecfcd09b0fbebea373f853d008
Cr-Commit-Position: refs/heads/master@{#307465}

Powered by Google App Engine
This is Rietveld 408576698