parser/nsCharsetSource.h
author Vijay Budhram <vbudhram@mozilla.com>
Tue, 12 Mar 2019 22:22:52 +0000
changeset 521680 3a075843a5ccddc55d2d04f5bc810ae35b0f6c09
parent 507025 5a6f372f62c150b9263a1a59377a352284b35114
permissions -rw-r--r--
Bug 1524665 - add strings for FxA avatar toolbar menu, r=gijs

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef nsCharsetSource_h_
#define nsCharsetSource_h_

// note: the value order defines the priority; higher numbers take priority
#define kCharsetUninitialized 0
#define kCharsetFromFallback 1
#define kCharsetFromTopLevelDomain 2
#define kCharsetFromFileURLGuess 3
#define kCharsetFromDocTypeDefault 4  // This and up confident for XHR
#define kCharsetFromCache 5
#define kCharsetFromParentFrame 6
#define kCharsetFromAutoDetection 7
#define kCharsetFromHintPrevDoc 8
#define kCharsetFromMetaPrescan 9  // this one and smaller: HTML5 Tentative
#define kCharsetFromMetaTag 10     // this one and greater: HTML5 Confident
#define kCharsetFromIrreversibleAutoDetection 11
#define kCharsetFromChannel 12
#define kCharsetFromOtherComponent 13
#define kCharsetFromParentForced 14  // propagates to child frames
#define kCharsetFromUserForced 15    // propagates to child frames
#define kCharsetFromByteOrderMark 16
#define kCharsetFromUtf8OnlyMime 17  // For JSON, WebVTT and such
#define kCharsetFromBuiltIn 18       // resource: URLs

#endif /* nsCharsetSource_h_ */