mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-01 01:36:09 +03:00
51 lines
1.3 KiB
Plaintext
51 lines
1.3 KiB
Plaintext
// 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;
|
|
|
|
// Corresponds to Fetch request's "mode" and "use-CORS-preflight flag":
|
|
// https://fetch.spec.whatwg.org/#concept-request-mode
|
|
//
|
|
// This enum is also used in histograms. Append-only.
|
|
// See the "FetchRequestMode" enum in enums.xml.
|
|
enum FetchRequestMode {
|
|
kSameOrigin,
|
|
kNoCORS,
|
|
kCORS,
|
|
kCORSWithForcedPreflight,
|
|
kNavigate,
|
|
// Add a new type here, then update enums.xml.
|
|
};
|
|
|
|
// Corresponds to Fetch request's "redirect mode":
|
|
// https://fetch.spec.whatwg.org/#concept-request-redirect-mode
|
|
enum FetchRedirectMode {
|
|
kFollow,
|
|
kError,
|
|
kManual,
|
|
};
|
|
|
|
// Corresponds to Fetch request's "credentials mode":
|
|
// https://fetch.spec.whatwg.org/#concept-request-credentials-mode
|
|
enum FetchCredentialsMode {
|
|
kOmit,
|
|
kSameOrigin,
|
|
kInclude,
|
|
};
|
|
|
|
// Corresponds to response types from the Fetch spec:
|
|
// https://fetch.spec.whatwg.org/#concept-response-type
|
|
//
|
|
// This enum is also used in histograms. Append-only.
|
|
// See the "FetchResponseType" enum in enums.xml.
|
|
enum FetchResponseType {
|
|
kBasic,
|
|
kCORS,
|
|
kDefault,
|
|
kError,
|
|
kOpaque,
|
|
kOpaqueRedirect,
|
|
// Add a new type here, then update enums.xml.
|
|
};
|