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

Issue 1014073002: Implement getting notifications up to the browser process. (Closed)

Created:
5 years, 9 months ago by Peter Beverloo
Modified:
5 years, 9 months ago
Reviewers:
johnme, Tom Sepez, Mike West
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement getting notifications up to the browser process. This CL implements the ability to get notifications for a given Service Worker up to the point where it hits the browser process, where there's a NOTIMPLEMENTED() waiting for now. The browser process then replies with an empty vector of open notifications. The second part of the implementation depends on the Notification Database, which is still an in-progress work. This CL is part of a three-sided patch: [1] https://codereview.chromium.org/1018613003/ [2] This CL. [3] https://codereview.chromium.org/1016843002/ BUG=442143 Committed: https://crrev.com/f6dd3c3320e44b29ac283f6ce9d41018cd8eed26 Cr-Commit-Position: refs/heads/master@{#321564}

Patch Set 1 #

Total comments: 12

Patch Set 2 : address comments #

Total comments: 3

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -5 lines) Patch
M content/browser/notifications/notification_message_filter.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/notifications/notification_message_filter.cc View 1 2 2 chunks +18 lines, -0 lines 0 comments Download
M content/child/notifications/notification_dispatcher.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/child/notifications/notification_dispatcher.cc View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M content/child/notifications/notification_manager.h View 1 4 chunks +15 lines, -0 lines 0 comments Download
M content/child/notifications/notification_manager.cc View 1 4 chunks +60 lines, -1 line 0 comments Download
M content/common/platform_notification_messages.h View 1 3 chunks +30 lines, -1 line 0 comments Download

Messages

Total messages: 18 (4 generated)
Peter Beverloo
+johnme for notifications +mkwst for IPC The IPC fuzzer is able to work with both ...
5 years, 9 months ago (2015-03-17 17:41:35 UTC) #2
Mike West
Sorry, I'm not going to be able to look at this in detail tonight. Perhaps ...
5 years, 9 months ago (2015-03-17 20:13:27 UTC) #4
Tom Sepez
https://codereview.chromium.org/1014073002/diff/1/content/common/platform_notification_messages.h File content/common/platform_notification_messages.h (right): https://codereview.chromium.org/1014073002/diff/1/content/common/platform_notification_messages.h#newcode39 content/common/platform_notification_messages.h:39: using PersistentNotificationInfo = This will have to move to ...
5 years, 9 months ago (2015-03-17 21:32:39 UTC) #5
johnme
https://codereview.chromium.org/1014073002/diff/1/content/browser/notifications/notification_message_filter.cc File content/browser/notifications/notification_message_filter.cc (right): https://codereview.chromium.org/1014073002/diff/1/content/browser/notifications/notification_message_filter.cc#newcode132 content/browser/notifications/notification_message_filter.cc:132: NOTIMPLEMENTED(); Depending on the NOTIMPLEMENTED_POLICY, this might fail at ...
5 years, 9 months ago (2015-03-18 15:03:06 UTC) #6
Peter Beverloo
Thanks for the reviews! https://codereview.chromium.org/1014073002/diff/1/content/browser/notifications/notification_message_filter.cc File content/browser/notifications/notification_message_filter.cc (right): https://codereview.chromium.org/1014073002/diff/1/content/browser/notifications/notification_message_filter.cc#newcode132 content/browser/notifications/notification_message_filter.cc:132: NOTIMPLEMENTED(); On 2015/03/18 15:03:06, johnme ...
5 years, 9 months ago (2015-03-19 15:46:44 UTC) #7
johnme
lgtm, thanks https://codereview.chromium.org/1014073002/diff/20001/content/child/notifications/notification_dispatcher.cc File content/child/notifications/notification_dispatcher.cc (right): https://codereview.chromium.org/1014073002/diff/20001/content/child/notifications/notification_dispatcher.cc#newcode20 content/child/notifications/notification_dispatcher.cc:20: CHECK_GE(next_notification_id_, 0); If a legit website polls ...
5 years, 9 months ago (2015-03-19 16:26:59 UTC) #8
Tom Sepez
https://codereview.chromium.org/1014073002/diff/20001/content/child/notifications/notification_dispatcher.cc File content/child/notifications/notification_dispatcher.cc (right): https://codereview.chromium.org/1014073002/diff/20001/content/child/notifications/notification_dispatcher.cc#newcode20 content/child/notifications/notification_dispatcher.cc:20: CHECK_GE(next_notification_id_, 0); Just wondering why this is a signed ...
5 years, 9 months ago (2015-03-19 18:10:18 UTC) #9
Tom Sepez
LGTM otherwise.
5 years, 9 months ago (2015-03-19 18:10:47 UTC) #10
Peter Beverloo
https://codereview.chromium.org/1014073002/diff/20001/content/child/notifications/notification_dispatcher.cc File content/child/notifications/notification_dispatcher.cc (right): https://codereview.chromium.org/1014073002/diff/20001/content/child/notifications/notification_dispatcher.cc#newcode20 content/child/notifications/notification_dispatcher.cc:20: CHECK_GE(next_notification_id_, 0); On 2015/03/19 18:10:18, Tom Sepez wrote: > ...
5 years, 9 months ago (2015-03-19 18:17:00 UTC) #11
Tom Sepez
On 2015/03/19 18:17:00, Peter Beverloo wrote: > https://codereview.chromium.org/1014073002/diff/20001/content/child/notifications/notification_dispatcher.cc > File content/child/notifications/notification_dispatcher.cc (right): > > https://codereview.chromium.org/1014073002/diff/20001/content/child/notifications/notification_dispatcher.cc#newcode20 ...
5 years, 9 months ago (2015-03-19 20:08:26 UTC) #12
Peter Beverloo
On 2015/03/19 20:08:26, Tom Sepez wrote: > On 2015/03/19 18:17:00, Peter Beverloo wrote: > > ...
5 years, 9 months ago (2015-03-19 20:11:30 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1014073002/40001
5 years, 9 months ago (2015-03-20 12:32:32 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 9 months ago (2015-03-20 13:22:20 UTC) #17
commit-bot: I haz the power
5 years, 9 months ago (2015-03-20 13:23:25 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f6dd3c3320e44b29ac283f6ce9d41018cd8eed26
Cr-Commit-Position: refs/heads/master@{#321564}

Powered by Google App Engine
This is Rietveld 408576698