mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
e42a48e81d
Enable nsAttrValue::EnumTable to be initialized with enum. So, we could get rid of the castings in EnumTable. Fix EnumTable initialization comment. For those untyped enumerations, declare them with uint8_t, as to other typed enumerations with type size larger than int16_t, force casting to int16_t. Use {nullptr,0} instead of {0} to represent the last entry. MozReview-Commit-ID: 7Dma3Apkmxj --HG-- extra : rebase_source : b2289866c4c33d80c8e170727bf109d018d92f67
34 lines
894 B
C++
34 lines
894 B
C++
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef CORSMode_h_
|
|
#define CORSMode_h_
|
|
|
|
namespace mozilla {
|
|
|
|
enum CORSMode : uint8_t {
|
|
/**
|
|
* The default of not using CORS to validate cross-origin loads.
|
|
*/
|
|
CORS_NONE,
|
|
|
|
/**
|
|
* Validate cross-site loads using CORS, but do not send any credentials
|
|
* (cookies, HTTP auth logins, etc) along with the request.
|
|
*/
|
|
CORS_ANONYMOUS,
|
|
|
|
/**
|
|
* Validate cross-site loads using CORS, and send credentials such as cookies
|
|
* and HTTP auth logins along with the request.
|
|
*/
|
|
CORS_USE_CREDENTIALS
|
|
};
|
|
|
|
} // namespace mozilla
|
|
|
|
#endif /* CORSMode_h_ */
|