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

Unified Diff: content/child/push_messaging/push_provider.h

Issue 2133673002: Push API: Implement and ship PushSubscription.options (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add MODULES_EXPORT Created 4 years, 5 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
Index: content/child/push_messaging/push_provider.h
diff --git a/content/child/push_messaging/push_provider.h b/content/child/push_messaging/push_provider.h
index b79e51c6dbdc7a9e1747e7ebcba98d2801c4dc67..4429d85a9c1af547a5926426b23034f2ddadb932 100644
--- a/content/child/push_messaging/push_provider.h
+++ b/content/child/push_messaging/push_provider.h
@@ -27,6 +27,7 @@ struct WebPushSubscriptionOptions;
namespace content {
class ThreadSafeSender;
+struct PushSubscriptionOptions;
class PushProvider : public blink::WebPushProvider,
public WorkerThread::Observer {
@@ -68,6 +69,7 @@ class PushProvider : public blink::WebPushProvider,
// IPC message handlers.
void OnSubscribeFromWorkerSuccess(int request_id,
const GURL& endpoint,
+ const PushSubscriptionOptions& options,
const std::vector<uint8_t>& p256dh,
const std::vector<uint8_t>& auth);
void OnSubscribeFromWorkerError(int request_id,
@@ -78,6 +80,7 @@ class PushProvider : public blink::WebPushProvider,
const std::string& error_message);
void OnGetSubscriptionSuccess(int request_id,
const GURL& endpoint,
+ const PushSubscriptionOptions& options,
const std::vector<uint8_t>& p256dh,
const std::vector<uint8_t>& auth);
void OnGetSubscriptionError(int request_id, PushGetRegistrationStatus status);
« no previous file with comments | « content/browser/push_messaging/push_messaging_message_filter.cc ('k') | content/child/push_messaging/push_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698