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 kCharsetFromDocTypeDefault
, // This and up confident for XHR
14 // Start subdividing source for telementry purposes
15 kCharsetFromInitialAutoDetectionASCII
,
16 kCharsetFromInitialAutoDetectionWouldHaveBeenUTF8
,
17 kCharsetFromInitialAutoDetectionWouldNotHaveBeenUTF8Generic
,
18 kCharsetFromInitialAutoDetectionWouldNotHaveBeenUTF8Content
,
19 kCharsetFromInitialAutoDetectionWouldNotHaveBeenUTF8DependedOnTLD
,
20 kCharsetFromFinalJapaneseAutoDetection
,
21 // Deliberately no Final version of ASCII
22 kCharsetFromFinalAutoDetectionWouldHaveBeenUTF8
,
23 kCharsetFromFinalAutoDetectionWouldNotHaveBeenUTF8Generic
,
24 kCharsetFromFinalAutoDetectionWouldNotHaveBeenUTF8Content
,
25 kCharsetFromFinalAutoDetectionWouldNotHaveBeenUTF8DependedOnTLD
,
26 kCharsetFromFinalAutoDetectionFile
,
27 // End subdividing source for telementry purposes
28 kCharsetFromParentFrame
, // Same-origin parent takes precedence over detector
29 // to avoid breaking tests. (Also, the HTML spec
31 kCharsetFromMetaPrescan
, // this one and smaller: HTML5 Tentative
32 kCharsetFromMetaTag
, // this one and greater: HTML5 Confident
33 kCharsetFromIrreversibleAutoDetection
,
35 kCharsetFromOtherComponent
,
36 kCharsetFromPendingUserForcedAutoDetection
, // Marker value to be upgraded
38 kCharsetFromInitialUserForcedAutoDetection
,
39 kCharsetFromFinalUserForcedAutoDetection
,
40 kCharsetFromUserForced
, // propagates to child frames
41 kCharsetFromUserForcedJapaneseAutoDetection
,
42 kCharsetFromByteOrderMark
,
43 kCharsetFromUtf8OnlyMime
, // For JSON, WebVTT and such
44 kCharsetFromBuiltIn
, // resource: URLs
47 #endif /* nsCharsetSource_h_ */