1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef nsCharsetSource_h_
6 #define nsCharsetSource_h_
8 // note: the value order defines the priority; higher numbers take priority
10 kCharsetUninitialized
,
12 kCharsetFromTopLevelDomain
,
13 kCharsetFromFileURLGuess
,
14 kCharsetFromDocTypeDefault
, // This and up confident for XHR
16 kCharsetFromParentFrame
,
17 kCharsetFromAutoDetection
,
18 kCharsetFromMetaPrescan
, // this one and smaller: HTML5 Tentative
19 kCharsetFromMetaTag
, // this one and greater: HTML5 Confident
20 kCharsetFromIrreversibleAutoDetection
,
22 kCharsetFromOtherComponent
,
23 kCharsetFromParentForced
, // propagates to child frames
24 kCharsetFromUserForced
, // propagates to child frames
25 kCharsetFromUserForcedAutoDetection
,
26 kCharsetFromByteOrderMark
,
27 kCharsetFromUtf8OnlyMime
, // For JSON, WebVTT and such
28 kCharsetFromBuiltIn
, // resource: URLs
31 #endif /* nsCharsetSource_h_ */