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

Side by Side Diff: components/copresence/proto/rpcs.proto

Issue 433283002: Adding the Copresence RpcHandler and HttpPost helper. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@directive-handler
Patch Set: Addressing nits Created 6 years, 4 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 unified diff | Download patch
OLDNEW
1 syntax = "proto2"; 1 syntax = "proto2";
2 package copresence; 2 package copresence;
3 option optimize_for = LITE_RUNTIME; 3 option optimize_for = LITE_RUNTIME;
4 import "codes.proto"; 4 import "codes.proto";
5 import "enums.proto"; 5 import "enums.proto";
6 import "data.proto"; 6 import "data.proto";
7 message RequestHeader { 7 message RequestHeader {
8 optional DeviceRegistration device_id = 3 [deprecated = true];
9 optional ClientVersion client_version = 4; 8 optional ClientVersion client_version = 4;
10 optional ClientVersion framework_version = 5; 9 optional ClientVersion framework_version = 5;
11 optional int64 current_time_millis = 6; 10 optional int64 current_time_millis = 6;
12 optional string registered_device_id = 7; 11 optional string registered_device_id = 7;
13 repeated string experiment_override = 8; 12 repeated string experiment_override = 8;
14 optional string configuration_etag = 11; 13 optional string configuration_etag = 11;
15 extensions 9 to 9;
16 } 14 }
17 message ResponseHeader { 15 message ResponseHeader {
18 optional ErrorType error_type = 1 [deprecated = true];
19 optional DebugInfo debug_info = 2; 16 optional DebugInfo debug_info = 2;
20 optional Status status = 3; 17 optional Status status = 3;
21 } 18 }
22 message RegisterDeviceRequest { 19 message RegisterDeviceRequest {
23 optional RequestHeader header = 1; 20 optional RequestHeader header = 1;
24 optional DeviceRegistration old_registration = 2 [deprecated = true];
25 optional DeviceRegistration new_registration = 3 [deprecated = true];
26 optional PushServiceRegistration push_service = 5; 21 optional PushServiceRegistration push_service = 5;
27 optional DeviceIdentifiers device_identifiers = 6; 22 optional DeviceIdentifiers device_identifiers = 6;
28 } 23 }
29 message RegisterDeviceResponse { 24 message RegisterDeviceResponse {
30 optional ResponseHeader header = 1; 25 optional ResponseHeader header = 1;
31 optional string registered_device_id = 2; 26 optional string registered_device_id = 2;
32 } 27 }
33 message ReportRequest { 28 message ReportRequest {
34 optional RequestHeader header = 1; 29 optional RequestHeader header = 1;
35 optional ManageMessagesRequest manage_messages_request = 2; 30 optional ManageMessagesRequest manage_messages_request = 2;
36 optional ManageSubscriptionsRequest manage_subscriptions_request = 3; 31 optional ManageSubscriptionsRequest manage_subscriptions_request = 3;
37 optional UpdateSignalsRequest update_signals_request = 4; 32 optional UpdateSignalsRequest update_signals_request = 4;
38 } 33 }
39 message UpdateSignalsRequest { 34 message UpdateSignalsRequest {
40 repeated TokenObservation token_observation = 1; 35 repeated TokenObservation token_observation = 1;
41 optional DeviceState state = 3; 36 optional DeviceState state = 3;
42 } 37 }
43 message ManageMessagesRequest { 38 message ManageMessagesRequest {
44 repeated PublishedMessage message_to_publish = 1; 39 repeated PublishedMessage message_to_publish = 1;
45 repeated string id_to_unpublish = 2; 40 repeated string id_to_unpublish = 2;
46 optional DeleteAll delete_all = 3;
47 } 41 }
48 message ManageSubscriptionsRequest { 42 message ManageSubscriptionsRequest {
49 repeated Subscription subscription = 1; 43 repeated Subscription subscription = 1;
50 repeated string id_to_unsubscribe = 2; 44 repeated string id_to_unsubscribe = 2;
51 optional DeleteAll delete_all = 3;
52 } 45 }
53 message ReportResponse { 46 message ReportResponse {
54 optional ResponseHeader header = 1; 47 optional ResponseHeader header = 1;
55 optional ManageMessagesResponse manage_messages_response = 2; 48 optional ManageMessagesResponse manage_messages_response = 2;
56 optional ManageSubscriptionsResponse manage_subscriptions_response = 3; 49 optional ManageSubscriptionsResponse manage_subscriptions_response = 3;
57 optional UpdateSignalsResponse update_signals_response = 4; 50 optional UpdateSignalsResponse update_signals_response = 4;
58 } 51 }
59 message UpdateSignalsResponse { 52 message UpdateSignalsResponse {
60 optional util.error.Code status = 1; 53 optional util.error.Code status = 1;
61 repeated Token token = 2; 54 repeated Token token = 2;
62 repeated SubscribedMessage message = 3; 55 repeated SubscribedMessage message = 3;
63 repeated Directive directive = 4; 56 repeated Directive directive = 4;
64 } 57 }
65 message ManageMessagesResponse { 58 message ManageMessagesResponse {
66 optional util.error.Code status = 1; 59 optional util.error.Code status = 1;
67 repeated MessageResult published_message_result = 3; 60 repeated MessageResult published_message_result = 3;
68 extensions 2 to 2;
69 } 61 }
70 message ManageSubscriptionsResponse { 62 message ManageSubscriptionsResponse {
71 optional util.error.Code status = 1; 63 optional util.error.Code status = 1;
72 repeated SubscriptionResult subscription_result = 3; 64 repeated SubscriptionResult subscription_result = 3;
73 extensions 2 to 2;
74 } 65 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698