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

Issue 1006493005: Introduce the PlatformNotificationContext class. (Closed)

Created:
5 years, 9 months ago by Peter Beverloo
Modified:
5 years, 9 months ago
Reviewers:
Bernhard Bauer, johnme
CC:
chromium-reviews, darin-cc_chromium.org, jam, Michael van Ouwerkerk, dewittj
Base URL:
https://chromium.googlesource.com/chromium/src.git@n-db-ReadWriteDelete
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce the PlatformNotificationContext class. This class provides an interface, to be used on the IO thread, on top of the NotificationDatabase class. It abstracts away the thread requirements of the database class and is responsible for managing the status and the lifetime of the database. Right now it's only used in unit tests, but it will eventually live as a member of StoragePartitionImpl, and will be used by the notification message filter. Design document: http://goo.gl/TciXVp BUG=447628 Committed: https://crrev.com/8f7612681b0b45c99010e90d5a0b7c1d80d9de8d Cr-Commit-Position: refs/heads/master@{#320781}

Patch Set 1 #

Total comments: 13

Patch Set 2 : address comments #

Patch Set 3 : fix a typo in the test #

Total comments: 2

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Total comments: 10

Patch Set 6 : y #

Unified diffs Side-by-side diffs Delta from patch set Stats (+415 lines, -5 lines) Patch
M content/browser/notifications/notification_database.h View 1 2 3 4 5 2 chunks +7 lines, -4 lines 0 comments Download
M content/browser/notifications/notification_database.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
A content/browser/notifications/platform_notification_context.h View 1 2 3 4 5 1 chunk +111 lines, -0 lines 0 comments Download
A content/browser/notifications/platform_notification_context.cc View 1 2 3 4 5 1 chunk +176 lines, -0 lines 0 comments Download
A content/browser/notifications/platform_notification_context_unittest.cc View 1 2 1 chunk +118 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
Peter Beverloo
+bauerb This patch depends on: https://codereview.chromium.org/999933002/
5 years, 9 months ago (2015-03-13 16:20:59 UTC) #2
Bernhard Bauer
https://codereview.chromium.org/1006493005/diff/1/content/browser/notifications/platform_notification_context.cc File content/browser/notifications/platform_notification_context.cc (right): https://codereview.chromium.org/1006493005/diff/1/content/browser/notifications/platform_notification_context.cc#newcode49 content/browser/notifications/platform_notification_context.cc:49: NotificationDatabaseData database_data; DCHECK you're on the right thread? (Also ...
5 years, 9 months ago (2015-03-13 16:51:18 UTC) #3
Peter Beverloo
https://codereview.chromium.org/1006493005/diff/1/content/browser/notifications/platform_notification_context.cc File content/browser/notifications/platform_notification_context.cc (right): https://codereview.chromium.org/1006493005/diff/1/content/browser/notifications/platform_notification_context.cc#newcode49 content/browser/notifications/platform_notification_context.cc:49: NotificationDatabaseData database_data; On 2015/03/13 16:51:18, Bernhard Bauer wrote: > ...
5 years, 9 months ago (2015-03-13 16:57:07 UTC) #4
Bernhard Bauer
https://codereview.chromium.org/1006493005/diff/1/content/browser/notifications/platform_notification_context.cc File content/browser/notifications/platform_notification_context.cc (right): https://codereview.chromium.org/1006493005/diff/1/content/browser/notifications/platform_notification_context.cc#newcode49 content/browser/notifications/platform_notification_context.cc:49: NotificationDatabaseData database_data; On 2015/03/13 16:57:07, Peter Beverloo wrote: > ...
5 years, 9 months ago (2015-03-13 17:24:02 UTC) #5
Peter Beverloo
All done! https://codereview.chromium.org/1006493005/diff/1/content/browser/notifications/platform_notification_context.cc File content/browser/notifications/platform_notification_context.cc (right): https://codereview.chromium.org/1006493005/diff/1/content/browser/notifications/platform_notification_context.cc#newcode49 content/browser/notifications/platform_notification_context.cc:49: NotificationDatabaseData database_data; On 2015/03/13 17:24:01, Bernhard (OOO ...
5 years, 9 months ago (2015-03-13 20:43:31 UTC) #6
Bernhard Bauer
LGTM! https://codereview.chromium.org/1006493005/diff/60001/content/browser/notifications/notification_database.h File content/browser/notifications/notification_database.h (right): https://codereview.chromium.org/1006493005/diff/60001/content/browser/notifications/notification_database.h#newcode28 content/browser/notifications/notification_database.h:28: // This class can be constructed on any ...
5 years, 9 months ago (2015-03-13 21:00:17 UTC) #7
Peter Beverloo
https://codereview.chromium.org/1006493005/diff/60001/content/browser/notifications/notification_database.h File content/browser/notifications/notification_database.h (right): https://codereview.chromium.org/1006493005/diff/60001/content/browser/notifications/notification_database.h#newcode28 content/browser/notifications/notification_database.h:28: // This class can be constructed on any thread, ...
5 years, 9 months ago (2015-03-16 12:06:22 UTC) #8
johnme
https://codereview.chromium.org/1006493005/diff/80001/content/browser/notifications/platform_notification_context.cc File content/browser/notifications/platform_notification_context.cc (right): https://codereview.chromium.org/1006493005/diff/80001/content/browser/notifications/platform_notification_context.cc#newcode158 content/browser/notifications/platform_notification_context.cc:158: BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, failure_closure); Surely you should also reset database_ ...
5 years, 9 months ago (2015-03-16 16:54:43 UTC) #10
Peter Beverloo
https://codereview.chromium.org/1006493005/diff/80001/content/browser/notifications/platform_notification_context.cc File content/browser/notifications/platform_notification_context.cc (right): https://codereview.chromium.org/1006493005/diff/80001/content/browser/notifications/platform_notification_context.cc#newcode158 content/browser/notifications/platform_notification_context.cc:158: BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, failure_closure); On 2015/03/16 16:54:43, johnme wrote: > ...
5 years, 9 months ago (2015-03-16 17:55:01 UTC) #11
johnme
lgtm
5 years, 9 months ago (2015-03-16 19:05:11 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1006493005/100001
5 years, 9 months ago (2015-03-16 19:06:20 UTC) #15
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 9 months ago (2015-03-16 20:11:24 UTC) #16
commit-bot: I haz the power
5 years, 9 months ago (2015-03-16 20:11:51 UTC) #17
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/8f7612681b0b45c99010e90d5a0b7c1d80d9de8d
Cr-Commit-Position: refs/heads/master@{#320781}

Powered by Google App Engine
This is Rietveld 408576698