mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-01 01:36:09 +03:00
28 lines
697 B
Plaintext
28 lines
697 B
Plaintext
// Copyright 2018 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 download.mojom;
|
|
|
|
enum NetworkRequestStatus {
|
|
OK,
|
|
NETWORK_TIMEOUT,
|
|
NETWORK_DISCONNECTED,
|
|
NETWORK_SERVER_DOWN,
|
|
SERVER_NO_RANGE,
|
|
SERVER_CONTENT_LENGTH_MISMATCH,
|
|
SERVER_UNREACHABLE,
|
|
SERVER_CERT_PROBLEM,
|
|
USER_CANCELED,
|
|
NETWORK_FAILED,
|
|
};
|
|
|
|
// Used to pass the interruption status to the consumer of the data pipe.
|
|
interface DownloadStreamClient {
|
|
OnStreamCompleted(NetworkRequestStatus status);
|
|
};
|
|
|
|
struct DownloadStreamHandle {
|
|
handle<data_pipe_consumer> stream;
|
|
DownloadStreamClient& client_request;
|
|
}; |