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

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

Issue 1210283005: Introduce the PushSubscription.curve25519dh attribute (2/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: android fix 2 Created 5 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 b47eea8076e751e224bd594b66c4bc71dac8cc13..38261507344303e1c9cc279131bda8f4af2b2530 100644
--- a/content/child/push_messaging/push_provider.h
+++ b/content/child/push_messaging/push_provider.h
@@ -5,7 +5,9 @@
#ifndef CONTENT_CHILD_PUSH_MESSAGING_PUSH_PROVIDER_H_
#define CONTENT_CHILD_PUSH_MESSAGING_PUSH_PROVIDER_H_
+#include <stdint.h>
#include <string>
+#include <vector>
#include "base/id_map.h"
#include "base/memory/ref_counted.h"
@@ -64,7 +66,8 @@ class PushProvider : public blink::WebPushProvider,
// IPC message handlers.
void OnSubscribeFromWorkerSuccess(int request_id,
- const GURL& endpoint);
+ const GURL& endpoint,
+ const std::vector<uint8_t>& curve25519dh);
void OnSubscribeFromWorkerError(int request_id,
PushRegistrationStatus status);
void OnUnsubscribeSuccess(int request_id, bool did_unsubscribe);
@@ -72,7 +75,8 @@ class PushProvider : public blink::WebPushProvider,
blink::WebPushError::ErrorType error_type,
const std::string& error_message);
void OnGetRegistrationSuccess(int request_id,
- const GURL& endpoint);
+ const GURL& endpoint,
+ const std::vector<uint8_t>& curve25519dh);
void OnGetRegistrationError(int request_id, PushGetRegistrationStatus status);
void OnGetPermissionStatusSuccess(int request_id,
blink::WebPushPermissionStatus 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