nsCharsetSource.h 1.2 KB

123456789101112131415161718192021222324252627
  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/. */
  4. #ifndef nsCharsetSource_h_
  5. #define nsCharsetSource_h_
  6. // note: the value order defines the priority; higher numbers take priority
  7. #define kCharsetUninitialized 0
  8. #define kCharsetFromFallback 1
  9. #define kCharsetFromTopLevelDomain 2
  10. #define kCharsetFromDocTypeDefault 3 // This and up confident for XHR
  11. #define kCharsetFromCache 4
  12. #define kCharsetFromParentFrame 5
  13. #define kCharsetFromAutoDetection 6
  14. #define kCharsetFromHintPrevDoc 7
  15. #define kCharsetFromMetaPrescan 8 // this one and smaller: HTML5 Tentative
  16. #define kCharsetFromMetaTag 9 // this one and greater: HTML5 Confident
  17. #define kCharsetFromIrreversibleAutoDetection 10
  18. #define kCharsetFromChannel 11
  19. #define kCharsetFromOtherComponent 12
  20. #define kCharsetFromParentForced 13 // propagates to child frames
  21. #define kCharsetFromUserForced 14 // propagates to child frames
  22. #define kCharsetFromByteOrderMark 15
  23. #endif /* nsCharsetSource_h_ */