static CookieGetter()
        {
            //対応させていないブラウザ、派生ブラウザとして省かれているブラウザを対応させる
            _getters = new CookieGetters(
                true, new PaleMoonImporterFactory(), new SeaMonkeyImporterFactory());

            //コア部分にはBrowserTypeが無いため、ブラウザ名とBrowserTypeの対応関係を
            //定義してBrowserType値の生成に使うする。
            _browserTypeDict = new Dictionary<string, BrowserType>() {
                {"IE Normal",  BrowserType.IE},
                {"IE Protected",  BrowserType.IESafemode},
                {"IE Enhanced Protected",  BrowserType.IEEPMode},
                {"Firefox",  BrowserType.Firefox},
                {"PaleMoon", BrowserType.PaleMoon},
                {"SeaMonkey", BrowserType.SeaMonkey},
                {"GoogleChrome",  BrowserType.GoogleChrome},
                {"IceDragon", BrowserType.ComodoIceDragon},
                {"Dragon", BrowserType.ComodoDragon},
                {"CoolNovo", BrowserType.CoolNovo},
                {"Opera Webkit",  BrowserType.OperaWebkit},
                {"Lunascape Gecko",  BrowserType.LunascapeGecko},
                {"Lunascape Webkit",  BrowserType.LunascapeWebkit},
                {"Sleipnir3 Gecko",  BrowserType.Sleipnir3Gecko},
                {"Sleipnir3 Wekit",  BrowserType.Sleipnir3Webkit},
                {"Sleipnir5 Blink",  BrowserType.Sleipnir5Blink},
                {"Chromium",  BrowserType.Chromium},
                {"Maxthon webkit",  BrowserType.Maxthon},
                {"TungstenBlink",  BrowserType.TungstenBlink},
            };
            _equivalentTypeDict = new Dictionary<BrowserType, BrowserType>() {
                { BrowserType.IEComponent, BrowserType.IE },
                { BrowserType.Sleipnir4Blink, BrowserType.Sleipnir5Blink },
            };
        }
示例#2
0
 static CookieGetters()
 {
     _importerFactories = new ICookieImporterFactory[] {
         _ieFactory, _egFactory, _ffFactory, _chFactory,
         new OperaWebkitImporterFactory(),
         new ChromiumImporterFactory(),
         new LunascapeImporterFactory(),
         new MaxthonImporterFactory(),
         new SleipnirImporterFactory(),
         new TungstenImporterFactory(),
         new SmartBlinkBrowserManager(),
         new SmartGeckoBrowserManager(),
     };
     Default = new CookieGetters();
 }
 static CookieGetters()
 {
     _importerFactories = new ICookieImporterFactory[] {
         _ieFactory, _egFactory, _ffFactory, _chFactory,
         new OperaWebkitImporterFactory(),
         new ChromiumImporterFactory(),
         new LunascapeImporterFactory(),
         new MaxthonImporterFactory(),
         new SleipnirImporterFactory(),
         new TungstenImporterFactory(),
         new SmartBlinkBrowserManager(),
         new SmartGeckoBrowserManager(),
     };
     Default = new CookieGetters();
 }