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

Unified Diff: content/public/browser/push_messaging_service.h

Issue 1861683002: Background service worker push message processing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dcheck ordering Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/pref_names.cc ('k') | content/public/browser/push_messaging_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/push_messaging_service.h
diff --git a/content/public/browser/push_messaging_service.h b/content/public/browser/push_messaging_service.h
index 993e2816da86d1240382717912c1b2c1c5849bc4..21b107c58f42940531728bc08ed415f99addc43d 100644
--- a/content/public/browser/push_messaging_service.h
+++ b/content/public/browser/push_messaging_service.h
@@ -41,8 +41,6 @@ class CONTENT_EXPORT PushMessagingService {
bool success,
bool not_found)>;
- using ResultCallback = base::Callback<void(bool success)>;
-
virtual ~PushMessagingService() {}
// Returns the absolute URL exposed by the push server where the webapp server
@@ -94,21 +92,6 @@ class CONTENT_EXPORT PushMessagingService {
// permission check behaviour.
virtual bool SupportNonVisibleMessages() = 0;
- // Provide a storage mechanism to read/write an opaque
- // "notifications_shown_by_last_few_pushes" string associated with a Service
- // Worker registration. Stored data is deleted when the associated
- // registration is deleted.
- static void GetNotificationsShownByLastFewPushes(
- ServiceWorkerContext* service_worker_context,
- int64_t service_worker_registration_id,
- const StringCallback& callback);
- static void SetNotificationsShownByLastFewPushes(
- ServiceWorkerContext* service_worker_context,
- int64_t service_worker_registration_id,
- const GURL& origin,
- const std::string& notifications_shown,
- const ResultCallback& callback);
-
protected:
static void GetSenderId(BrowserContext* browser_context,
const GURL& origin,
« no previous file with comments | « chrome/common/pref_names.cc ('k') | content/public/browser/push_messaging_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698