// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. module network.mojom; // An interface that can vend a data pipe multiple times. You can think of it // as backed by content like a Blob that can be read multiple times. interface DataPipeGetter { // Reads all the content, writing into |pipe|. Calls the callback with |size| // once the size of the content is known. If an error occurred before the // size was known, the callback is instead called with the net::Error // |status|. Read(handle pipe) => (int32 status, uint64 size); };