Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
michael@0 | 3 | * You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | #ifndef nsCharsetSource_h_ |
michael@0 | 6 | #define nsCharsetSource_h_ |
michael@0 | 7 | |
michael@0 | 8 | // note: the value order defines the priority; higher numbers take priority |
michael@0 | 9 | #define kCharsetUninitialized 0 |
michael@0 | 10 | #define kCharsetFromFallback 1 |
michael@0 | 11 | #define kCharsetFromTopLevelDomain 2 |
michael@0 | 12 | #define kCharsetFromDocTypeDefault 3 // This and up confident for XHR |
michael@0 | 13 | #define kCharsetFromCache 4 |
michael@0 | 14 | #define kCharsetFromParentFrame 5 |
michael@0 | 15 | #define kCharsetFromAutoDetection 6 |
michael@0 | 16 | #define kCharsetFromHintPrevDoc 7 |
michael@0 | 17 | #define kCharsetFromMetaPrescan 8 // this one and smaller: HTML5 Tentative |
michael@0 | 18 | #define kCharsetFromMetaTag 9 // this one and greater: HTML5 Confident |
michael@0 | 19 | #define kCharsetFromIrreversibleAutoDetection 10 |
michael@0 | 20 | #define kCharsetFromChannel 11 |
michael@0 | 21 | #define kCharsetFromOtherComponent 12 |
michael@0 | 22 | #define kCharsetFromParentForced 13 // propagates to child frames |
michael@0 | 23 | #define kCharsetFromUserForced 14 // propagates to child frames |
michael@0 | 24 | #define kCharsetFromByteOrderMark 15 |
michael@0 | 25 | |
michael@0 | 26 | #endif /* nsCharsetSource_h_ */ |