Skip to content

Commit

Permalink
Update protobuf files to Chromium 85.0.4183.83
Browse files Browse the repository at this point in the history
  • Loading branch information
yrliou committed Sep 1, 2020
1 parent e068b66 commit 2b1197f
Show file tree
Hide file tree
Showing 19 changed files with 1,949 additions and 996 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A sync server implemented in go to communicate with Brave sync clients using
[components/sync/protocol/sync.proto](https://cs.chromium.org/chromium/src/components/sync/protocol/sync.proto).
Current Chromium version for sync protocol buffer files used in this repo is Chromium 83.0.4103.61.
Current Chromium version for sync protocol buffer files used in this repo is Chromium 85.0.4183.83.

This server supports endpoints as bellow.
- The `POST /v2/command/` endpoint handles Commit and GetUpdates requests from sync clients and return corresponding responses both in protobuf format. Detailed of requests and their corresponding responses are defined in `schema/protobuf/sync_pb/sync.proto`. Sync clients are responsible for generating valid access tokens and present them to the server in the Authorization header of requests.
Expand Down
218 changes: 150 additions & 68 deletions schema/protobuf/sync_pb/device_info_specifics.pb.go

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions schema/protobuf/sync_pb/device_info_specifics.proto
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ message DeviceInfoSpecifics {
// excludes backgrounded apps on Android). Introduced in M81. The legacy
// default was 1 day.
optional int32 pulse_interval_in_minutes = 13;

// Device specific information for Sync invalidations.
optional InvalidationSpecificFields invalidation_fields = 14;
}

// Feature specific information about the device that is running a sync-enabled
Expand Down Expand Up @@ -137,3 +140,11 @@ message SharingSpecificFields {
// Auth secret for message encryption [RFC8291] using Sharing sender ID.
optional bytes sender_id_auth_secret_v2 = 10;
}

// Device specific information telling how to send invalidations to this device.
message InvalidationSpecificFields {
// FCM registration token of device (using Sync sender ID).
optional string instance_id_token = 1;

// TODO(crbug.com/1082117): add data types list.
}
23 changes: 19 additions & 4 deletions schema/protobuf/sync_pb/entity_metadata.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions schema/protobuf/sync_pb/entity_metadata.proto
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,9 @@ message EntityMetadata {
// unique_position.proto for more information about its internal
// representation.
optional UniquePosition unique_position = 11;

// Used only for bookmarks. It's analogous to |specifics_hash| but it
// exclusively hashes the content of the favicon image, as represented in
// proto field BookmarkSpecifics.favicon, using base::PersistentHash().
optional fixed32 bookmark_favicon_hash = 12;
}
59 changes: 36 additions & 23 deletions schema/protobuf/sync_pb/sharing_message_specifics.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions schema/protobuf/sync_pb/sharing_message_specifics.proto
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,15 @@ message SharingMessageCommitError {
// Client-specific error codes.
SYNC_TURNED_OFF = 8;
SYNC_NETWORK_ERROR = 9;
// Error code for server error or unparsable server response.
SYNC_SERVER_ERROR = 10;
// Deprecated UMA bucket, prior to splitting between SYNC_SERVER_ERROR and
// SYNC_AUTH_ERROR.
DEPRECATED_SYNC_SERVER_OR_AUTH_ERROR = 10;
// Message wasn't committed before timeout.
SYNC_TIMEOUT = 11;
// Error code for server error or unparsable server response.
SYNC_SERVER_ERROR = 12;
// Auth error when communicating with the server.
SYNC_AUTH_ERROR = 13;
}

optional ErrorCode error_code = 1;
Expand Down
Loading

0 comments on commit 2b1197f

Please sign in to comment.