Commit d85bcf54 authored by Alex Chau's avatar Alex Chau Committed by Commit Bot

Add p256dh and auth_secret to ServerChannelConfiguration

This partially reverts commit 70644e48's
change in chrome/browser/sharing/proto/sharing_message.proto.

Bug: 1045883
Change-Id: Ie3db828bad1b018bdf96781237ebbda55f1cb45f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2024891Reviewed-by: default avatarMichael van Ouwerkerk <mvanouwerkerk@chromium.org>
Commit-Queue: Alex Chau <alexchau@chromium.org>
Cr-Commit-Position: refs/heads/master@{#735872}
parent c859170a
......@@ -37,10 +37,8 @@ enum MessageType {
}
// Message for sending between devices in Sharing.
// Next tag: 16
// Next tag: 15
message SharingMessage {
reserved 12;
// Identifier of sender. required except for AckMessage.
string sender_guid = 1;
......@@ -64,9 +62,9 @@ message SharingMessage {
// message. optional.
FCMChannelConfiguration fcm_channel_configuration = 6;
// Opaque server channel configuration. Ack message will be delivered
// through server channel. optional.
bytes server_channel_configuration = 15;
// Server channel configuration. Ack message will be delivered through
// server channel. optional.
ServerChannelConfiguration server_channel_configuration = 12;
}
// The name of the device sending this message. optional.
......@@ -121,6 +119,21 @@ message FCMChannelConfiguration {
bytes sender_id_auth_secret = 6;
}
// Server channel configuration. Message will be delivered through server
// channel.
message ServerChannelConfiguration {
reserved 1, 2;
// Opaque server channel configuration. required.
bytes configuration = 3;
// Subscription public key required for RFC 8291 using VAPID key. required.
bytes p256dh = 4;
// Auth secret key required for RFC 8291 using VAPID key. required.
bytes auth_secret = 5;
}
// Request for Sharing Discovery.
message DiscoveryRequest {
// required
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment