Commit c4dce80e authored by Alex Gough's avatar Alex Gough Committed by Commit Bot

Use ReadOnlyFile in nearby sharing

Input file here does not need to be written.

Bug: 1130762
Change-Id: I4f7d3bc0b583ec3c9afe3105ef3a98eb11551e30
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2488703Reviewed-by: default avatarJames Vecore <vecore@google.com>
Reviewed-by: default avatarRyan Hansberry <hansberry@chromium.org>
Commit-Queue: Alex Gough <ajgo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#820878}
parent 8a0eccec
......@@ -9,6 +9,7 @@ import "chromeos/services/nearby/public/mojom/webrtc.mojom";
import "chromeos/services/nearby/public/mojom/webrtc_signaling_messenger.mojom";
import "device/bluetooth/public/mojom/adapter.mojom";
import "mojo/public/mojom/base/file.mojom";
import "mojo/public/mojom/base/read_only_file.mojom";
import "services/network/public/mojom/mdns_responder.mojom";
import "services/network/public/mojom/p2p.mojom";
......@@ -298,7 +299,8 @@ interface NearbyConnections {
// Possible return values include:
// Status::kSuccess if file is registered successfully.
// Status::kError if file is not opened correctly.
RegisterPayloadFile(int64 payload_id, mojo_base.mojom.File input_file,
RegisterPayloadFile(int64 payload_id,
mojo_base.mojom.ReadOnlyFile input_file,
mojo_base.mojom.File output_file)
=> (Status status);
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment