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 kCharsetFromInitialAutoDetection
,
17 kCharsetFromFinalAutoDetection
,
18 kCharsetFromParentFrame
, // Same-origin parent takes precedence over detector
19 // to avoid breaking tests. (Also, the HTML spec
21 kCharsetFromMetaPrescan
, // this one and smaller: HTML5 Tentative
22 kCharsetFromMetaTag
, // this one and greater: HTML5 Confident
23 kCharsetFromIrreversibleAutoDetection
,
25 kCharsetFromOtherComponent
,
26 kCharsetFromUserForced
, // propagates to child frames
27 kCharsetFromUserForcedAutoDetection
,
28 kCharsetFromByteOrderMark
,
29 kCharsetFromUtf8OnlyMime
, // For JSON, WebVTT and such
30 kCharsetFromBuiltIn
, // resource: URLs
33 #endif /* nsCharsetSource_h_ */