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

Unified Diff: content/common/push_messaging_messages.h

Issue 1210283005: Introduce the PushSubscription.curve25519dh attribute (2/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/common/push_messaging_messages.h
diff --git a/content/common/push_messaging_messages.h b/content/common/push_messaging_messages.h
index 3849c5ab0021543ef8b56486a2640fe4ff99a7d3..f83f7368b25900d179129d20f7cc682636870be0 100644
--- a/content/common/push_messaging_messages.h
+++ b/content/common/push_messaging_messages.h
@@ -31,13 +31,15 @@ IPC_ENUM_TRAITS_MAX_VALUE(
// Messages sent from the browser to the child process.
-IPC_MESSAGE_ROUTED2(PushMessagingMsg_SubscribeFromDocumentSuccess,
+IPC_MESSAGE_ROUTED3(PushMessagingMsg_SubscribeFromDocumentSuccess,
int32_t /* request_id */,
- GURL /* push_endpoint */)
+ GURL /* push_endpoint */,
+ std::vector<uint8_t> /* curve25519dh */)
-IPC_MESSAGE_CONTROL2(PushMessagingMsg_SubscribeFromWorkerSuccess,
+IPC_MESSAGE_CONTROL3(PushMessagingMsg_SubscribeFromWorkerSuccess,
int32_t /* request_id */,
- GURL /* push_endpoint */)
+ GURL /* push_endpoint */,
+ std::vector<uint8_t> /* curve25519dh */)
IPC_MESSAGE_ROUTED2(PushMessagingMsg_SubscribeFromDocumentError,
int32_t /* request_id */,
@@ -56,9 +58,10 @@ IPC_MESSAGE_CONTROL3(PushMessagingMsg_UnsubscribeError,
blink::WebPushError::ErrorType /* error_type */,
std::string /* error_message */)
-IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetRegistrationSuccess,
+IPC_MESSAGE_CONTROL3(PushMessagingMsg_GetRegistrationSuccess,
int32_t /* request_id */,
- GURL /* push_endpoint */)
+ GURL /* push_endpoint */,
+ std::vector<uint8_t> /* curve25519dh */)
IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetRegistrationError,
int32_t /* request_id */,
@@ -90,8 +93,9 @@ IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_Unsubscribe,
int32_t /* request_id */,
int64_t /* service_worker_registration_id */)
-IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_GetRegistration,
+IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_GetRegistration,
int32_t /* request_id */,
+ GURL /* origin */,
johnme 2015/07/09 16:02:53 It seems problematic to let the untrusted renderer
Peter Beverloo 2015/07/09 18:54:17 I don't buy that argument. Passing the origin woul
int64_t /* service_worker_registration_id */)
IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_GetPermissionStatus,

Powered by Google App Engine
This is Rietveld 408576698