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

Side by Side Diff: chrome/browser/extensions/api/cast_channel/cast_channel.proto

Issue 35443002: Update CastSocket connection flow to check for receiver credentials. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 syntax = "proto2"; 5 syntax = "proto2";
6 6
7 option optimize_for = LITE_RUNTIME; 7 option optimize_for = LITE_RUNTIME;
8 8
9 package extensions.api.cast_channel; 9 package extensions.api.cast_channel;
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 BINARY = 1; 46 BINARY = 1;
47 } 47 }
48 required PayloadType payload_type = 5; 48 required PayloadType payload_type = 5;
49 49
50 // Depending on payload_type, exactly one of the following optional fields 50 // Depending on payload_type, exactly one of the following optional fields
51 // will always be set. 51 // will always be set.
52 optional string payload_utf8 = 6; 52 optional string payload_utf8 = 6;
53 optional bytes payload_binary = 7; 53 optional bytes payload_binary = 7;
54 } 54 }
55 55
56 // Messages for authentication protocol between a sender and a receiver.
57 message AuthChallenge {
58 }
59
60 message AuthResponse {
61 required bytes signature = 1;
62 required bytes client_auth_certificate = 2;
63 }
64
65 message AuthError {
66 enum ErrorType {
67 INTERNAL_ERROR = 0;
68 NO_TLS = 1; // The underlying connection is not TLS
69 }
70 required ErrorType error_type = 1;
71 }
72
73 message DeviceAuthMessage {
74 // Request fields
75 optional AuthChallenge challenge = 1;
76 // Response fields
77 optional AuthResponse response = 2;
78 optional AuthError error = 3;
79 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698