// 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 blink.mojom; | |
// The renderer uses this interface to notify the browser that the stream | |
// response passed to respondWith() ended. | |
interface ServiceWorkerStreamCallback { | |
OnCompleted(); | |
OnAborted(); | |
}; | |
struct ServiceWorkerStreamHandle { | |
handle<data_pipe_consumer> stream; | |
ServiceWorkerStreamCallback& callback_request; | |
}; |