Bug 1578501 [wpt PR 18803] - WebKit export of https://bugs.webkit.org/show_bug.cgi...
[gecko.git] / parser / nsCharsetSource.h
blob603a8667f8d4370d56dde6b6b276e14927fe64a2
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
9 enum {
10 kCharsetUninitialized,
11 kCharsetFromFallback,
12 kCharsetFromTopLevelDomain,
13 kCharsetFromFileURLGuess,
14 kCharsetFromDocTypeDefault, // This and up confident for XHR
15 kCharsetFromCache,
16 kCharsetFromParentFrame,
17 kCharsetFromAutoDetection,
18 kCharsetFromMetaPrescan, // this one and smaller: HTML5 Tentative
19 kCharsetFromMetaTag, // this one and greater: HTML5 Confident
20 kCharsetFromIrreversibleAutoDetection,
21 kCharsetFromChannel,
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_ */