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

Issue 988163003: Introduce the NotificationDatabase class. (Closed)

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

Description

Introduce the NotificationDatabase class. This is the first part of the Web Notification database implementation, which is now only capable of opening and creating empty in-memory and file-based databases, as well as destroying them. Together with this first bit of functionality come a few unit tests to ensure that they work correctly. Until the database reaches sufficient maturity, it won't be used for anything but unit tests. Design document: http://goo.gl/TciXVp BUG=447628 Committed: https://crrev.com/5bb2e1454ad48e8d6da8f5702eb672daba6231e5 Cr-Commit-Position: refs/heads/master@{#320285}

Patch Set 1 #

Total comments: 46

Patch Set 2 : address comments #

Total comments: 4

Patch Set 3 : further comments #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+288 lines, -1 line) Patch
A + content/browser/notifications/DEPS View 1 chunk +1 line, -1 line 0 comments Download
A content/browser/notifications/notification_database.h View 1 2 3 4 1 chunk +88 lines, -0 lines 0 comments Download
A content/browser/notifications/notification_database.cc View 1 2 3 1 chunk +92 lines, -0 lines 0 comments Download
A content/browser/notifications/notification_database_unittest.cc View 1 1 chunk +104 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 18 (5 generated)
Peter Beverloo
+bauerb and mvanouwerkerk for the notification part. +jsbell for DEPS addition
5 years, 9 months ago (2015-03-11 16:23:51 UTC) #2
jsbell
Thanks. DEPS lgtm. :) +cmumford as FYI: a new leveldb usage
5 years, 9 months ago (2015-03-11 16:33:51 UTC) #3
cmumford
https://codereview.chromium.org/988163003/diff/1/content/browser/notifications/notification_database.cc File content/browser/notifications/notification_database.cc (right): https://codereview.chromium.org/988163003/diff/1/content/browser/notifications/notification_database.cc#newcode20 content/browser/notifications/notification_database.cc:20: return NotificationDatabase::STATUS_OK; You could call status.IsNotFound() and return STATUS_ERROR_NOT_FOUND ...
5 years, 9 months ago (2015-03-11 17:13:24 UTC) #5
Bernhard Bauer
https://codereview.chromium.org/988163003/diff/1/content/browser/notifications/notification_database.cc File content/browser/notifications/notification_database.cc (right): https://codereview.chromium.org/988163003/diff/1/content/browser/notifications/notification_database.cc#newcode35 content/browser/notifications/notification_database.cc:35: db_.reset(); You don't need to explicitly reset the database ...
5 years, 9 months ago (2015-03-11 17:15:23 UTC) #6
Peter Beverloo
Thanks for the thorough look! Chris, do you mind if I cc you on future ...
5 years, 9 months ago (2015-03-11 18:01:26 UTC) #7
Bernhard Bauer
https://codereview.chromium.org/988163003/diff/1/content/browser/notifications/notification_database.cc File content/browser/notifications/notification_database.cc (right): https://codereview.chromium.org/988163003/diff/1/content/browser/notifications/notification_database.cc#newcode35 content/browser/notifications/notification_database.cc:35: db_.reset(); On 2015/03/11 18:01:26, Peter Beverloo wrote: > On ...
5 years, 9 months ago (2015-03-11 18:20:02 UTC) #8
cmumford
Sure, you can put me on leveldb reviews. https://codereview.chromium.org/988163003/diff/1/content/browser/notifications/notification_database.cc File content/browser/notifications/notification_database.cc (right): https://codereview.chromium.org/988163003/diff/1/content/browser/notifications/notification_database.cc#newcode62 content/browser/notifications/notification_database.cc:62: return ...
5 years, 9 months ago (2015-03-11 18:24:33 UTC) #10
Peter Beverloo
https://codereview.chromium.org/988163003/diff/1/content/browser/notifications/notification_database.cc File content/browser/notifications/notification_database.cc (right): https://codereview.chromium.org/988163003/diff/1/content/browser/notifications/notification_database.cc#newcode35 content/browser/notifications/notification_database.cc:35: db_.reset(); On 2015/03/11 18:20:01, Bernhard Bauer wrote: > On ...
5 years, 9 months ago (2015-03-11 19:32:26 UTC) #11
Bernhard Bauer
LGTM w/ a small comment nit: https://codereview.chromium.org/988163003/diff/60001/content/browser/notifications/notification_database.h File content/browser/notifications/notification_database.h (right): https://codereview.chromium.org/988163003/diff/60001/content/browser/notifications/notification_database.h#newcode74 content/browser/notifications/notification_database.h:74: // These members ...
5 years, 9 months ago (2015-03-11 21:35:11 UTC) #12
Peter Beverloo
https://codereview.chromium.org/988163003/diff/60001/content/browser/notifications/notification_database.h File content/browser/notifications/notification_database.h (right): https://codereview.chromium.org/988163003/diff/60001/content/browser/notifications/notification_database.h#newcode74 content/browser/notifications/notification_database.h:74: // These members depend on the declaration order for ...
5 years, 9 months ago (2015-03-11 22:11:54 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/988163003/80001
5 years, 9 months ago (2015-03-12 13:52:42 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 9 months ago (2015-03-12 15:31:28 UTC) #17
commit-bot: I haz the power
5 years, 9 months ago (2015-03-12 15:32:12 UTC) #18
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/5bb2e1454ad48e8d6da8f5702eb672daba6231e5
Cr-Commit-Position: refs/heads/master@{#320285}

Powered by Google App Engine
This is Rietveld 408576698