parser/nsCharsetSource.h
author Mike Hommey <mh+mozilla@glandium.org>
Wed, 16 Jan 2019 21:44:54 +0000
changeset 514172 e0fd6ca971ae522dd9398d49f564fe3f7263112b
parent 509907 5a6f372f62c150b9263a1a59377a352284b35114
permissions -rw-r--r--
Bug 1520377 - Replace/Inline subconfigure.{prefix_lines,execute_and_prefix}. r=nalexander Use an I/O wrapper on the configure output handler to add the "js/src>" prefix. Depends on D16643 Differential Revision: https://phabricator.services.mozilla.com/D16644

/* 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 nsCharsetSource_h_
#define nsCharsetSource_h_

// note: the value order defines the priority; higher numbers take priority
#define kCharsetUninitialized 0
#define kCharsetFromFallback 1
#define kCharsetFromTopLevelDomain 2
#define kCharsetFromFileURLGuess 3
#define kCharsetFromDocTypeDefault 4  // This and up confident for XHR
#define kCharsetFromCache 5
#define kCharsetFromParentFrame 6
#define kCharsetFromAutoDetection 7
#define kCharsetFromHintPrevDoc 8
#define kCharsetFromMetaPrescan 9  // this one and smaller: HTML5 Tentative
#define kCharsetFromMetaTag 10     // this one and greater: HTML5 Confident
#define kCharsetFromIrreversibleAutoDetection 11
#define kCharsetFromChannel 12
#define kCharsetFromOtherComponent 13
#define kCharsetFromParentForced 14  // propagates to child frames
#define kCharsetFromUserForced 15    // propagates to child frames
#define kCharsetFromByteOrderMark 16
#define kCharsetFromUtf8OnlyMime 17  // For JSON, WebVTT and such
#define kCharsetFromBuiltIn 18       // resource: URLs

#endif /* nsCharsetSource_h_ */