Skip to content

Commit

Permalink
Add chrome remote desktop file transfer protobufs
Browse files Browse the repository at this point in the history
Bug: 
Change-Id: If2dd1043808a3328cd4515fe7a89cd61cd076d6f
Reviewed-on: https://chromium-review.googlesource.com/585330
Commit-Queue: Joseph Arhar <jarhar@google.com>
Reviewed-by: Jamie Walch <jamiewalch@chromium.org>
Cr-Commit-Position: refs/heads/master@{#491029}
  • Loading branch information
josepharhar authored and Commit Bot committed Aug 1, 2017
1 parent 49c911f commit 899e723
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions remoting/proto/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ proto_library("proto") {
"audio.proto",
"control.proto",
"event.proto",
"file_transfer.proto",
"internal.proto",
"mux.proto",
"process_stats.proto",
Expand Down
29 changes: 29 additions & 0 deletions remoting/proto/file_transfer.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
syntax = "proto2";

option optimize_for = LITE_RUNTIME;

package remoting.protocol;

// Next Id: 3
message FileTransferRequest {
optional string filename = 1;
optional uint64 filesize = 2;
}

// Next Id: 4
message FileTransferResponse {
enum TransferState {
READY = 1;
IN_PROGRESS = 2;
DONE = 3;
}
optional TransferState state = 1;

enum ErrorCode {
OUT_OF_DISK_SPACE = 1;
PERMISSIONS_ERROR = 2;
}
optional ErrorCode error = 2;

optional uint64 total_bytes_written = 3;
}

0 comments on commit 899e723

Please sign in to comment.