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

Side by Side Diff: blimp/common/proto/blimp_message.proto

Issue 1492643003: [Blimp Net] Add EngineAuthHandler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addresses Wez's comments Created 5 years 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 // Contains the BlimpMessage proto which frames all messages sent over Blimp 5 // Contains the BlimpMessage proto which frames all messages sent over Blimp
6 // subchannels. BlimpMessage protos are serialized and transmitted over the 6 // subchannels. BlimpMessage protos are serialized and transmitted over the
7 // wire to the Blimplet server. 7 // wire to the Blimplet server.
8 // 8 //
9 // Each BlimpMessage has a few identifying fields which provide the browser 9 // Each BlimpMessage has a few identifying fields which provide the browser
10 // session and tab ID as context. The message details are stored in a 10 // session and tab ID as context. The message details are stored in a
(...skipping 10 matching lines...) Expand all
21 21
22 syntax = "proto2"; 22 syntax = "proto2";
23 23
24 option optimize_for = LITE_RUNTIME; 24 option optimize_for = LITE_RUNTIME;
25 25
26 import "control.proto"; 26 import "control.proto";
27 import "compositor.proto"; 27 import "compositor.proto";
28 import "input.proto"; 28 import "input.proto";
29 import "navigation.proto"; 29 import "navigation.proto";
30 import "render_widget.proto"; 30 import "render_widget.proto";
31 import "protocol_control.proto";
31 32
32 package blimp; 33 package blimp;
33 34
34 message BlimpMessage { 35 message BlimpMessage {
35 enum Type { 36 enum Type {
36 UNKNOWN = 0; 37 UNKNOWN = 0;
37 CONTROL = 1; 38 CONTROL = 1;
38 NAVIGATION = 2; 39 NAVIGATION = 2;
39 RENDER_WIDGET = 3; 40 RENDER_WIDGET = 3;
40 INPUT = 4; 41 INPUT = 4;
41 COMPOSITOR = 5; 42 COMPOSITOR = 5;
43 PROTOCOL_CONTROL = 6;
42 } 44 }
43 45
44 // Sequence number of this message, used for message acknowledgement. 46 // Sequence number of this message, used for message acknowledgement.
45 // The sender may omit this value if it is exactly one higher than the 47 // The sender may omit this value if it is exactly one higher than the
46 // message that was previously sent. 48 // message that was previously sent.
47 optional int64 message_id = 1; 49 optional int64 message_id = 1;
48 50
49 // Identifies the feature type of this message. 51 // Identifies the feature type of this message.
50 // The feature-specific contents are contained in optional fields of the same 52 // The feature-specific contents are contained in optional fields of the same
51 // name (example: use |compositor| field for type=COMPOSITOR.) 53 // name (example: use |compositor| field for type=COMPOSITOR.)
(...skipping 11 matching lines...) Expand all
63 optional int32 target_tab_id = 4; 65 optional int32 target_tab_id = 4;
64 66
65 // Feature-specific messages follow. 67 // Feature-specific messages follow.
66 // Only one of these fields may be set per BlimpMessage. 68 // Only one of these fields may be set per BlimpMessage.
67 // TODO(kmarshall): use a 'oneof' union when it's supported in Chromium. 69 // TODO(kmarshall): use a 'oneof' union when it's supported in Chromium.
68 optional ControlMessage control = 1000; 70 optional ControlMessage control = 1000;
69 optional NavigationMessage navigation = 1001; 71 optional NavigationMessage navigation = 1001;
70 optional RenderWidgetMessage render_widget = 1002; 72 optional RenderWidgetMessage render_widget = 1002;
71 optional InputMessage input = 1003; 73 optional InputMessage input = 1003;
72 optional CompositorMessage compositor = 1004; 74 optional CompositorMessage compositor = 1004;
75 optional ProtocolControlMessage protocol_control = 1005;
73 } 76 }
74 77
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698