Introduce the PlatformNotificationContext class.
commit8f7612681b0b45c99010e90d5a0b7c1d80d9de8d
authorpeter <peter@chromium.org>
Mon, 16 Mar 2015 20:11:15 +0000 (16 13:11 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 16 Mar 2015 20:11:44 +0000 (16 20:11 +0000)
tree77d77a04932a95d41054c46722b3ab17c178f8e7
parenta98a10a49f00269e85fe3aac2c2dc78b2edd4663
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

Review URL: https://codereview.chromium.org/1006493005

Cr-Commit-Position: refs/heads/master@{#320781}
content/browser/notifications/notification_database.cc
content/browser/notifications/notification_database.h
content/browser/notifications/platform_notification_context.cc [new file with mode: 0644]
content/browser/notifications/platform_notification_context.h [new file with mode: 0644]
content/browser/notifications/platform_notification_context_unittest.cc [new file with mode: 0644]
content/content_browser.gypi
content/content_tests.gypi