Example #1
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        internal CookieGetter(CookieStatus status)
        {
            if (status == null)
            {
                throw new ArgumentNullException("status");
            }

            Status = status;
        }
Example #2
0
        public ICookieGetter CreateDefaultCookieGetter()
        {
            string cookieFolder = Environment.GetFolderPath(
                Environment.SpecialFolder.Cookies);

            CookieStatus status = new CookieStatus(
                this.BrowserType.ToString(),
                cookieFolder,
                this.BrowserType,
                PathType.Directory);

            return(new IECookieGetter(status, false));
        }
Example #3
0
        public ICookieGetter CreateDefaultCookieGetter()
        {
            string path = CookieUtil.ReplacePathSymbols(COOKIEPATH);

            if (!File.Exists(path))
            {
                path = null;
            }

            CookieStatus status = new CookieStatus(
                BrowserType.ToString(), path, BrowserType, PathType.File);

            return(new GoogleChromeCookieGetter(status));
        }
Example #4
0
        /// <summary>
        /// 指定のfirefoxプロファイルからクッキーを取得します。
        /// </summary>
        private ICookieGetter CreateCookieGetter(FirefoxProfile prof)
        {
            string name = "Firefox";
            string path = null;

            if (prof != null)
            {
                name += " " + prof.Name;
                path  = Path.Combine(prof.FilePath, COOKEFILE_NAME);
            }

            CookieStatus status = new CookieStatus(
                name, path, BrowserType, PathType.File);

            return(new FirefoxCookieGetter(status));
        }
Example #5
0
 public IECookieGetter(CookieStatus status, bool checkSubDirectory)
     : base(status)
 {
     this._checkSubDirectory = false;
 }
 public SafariCookieGetter(CookieStatus status) : base(status)
 {
 }
 public OperaCookieGetter(CookieStatus status) : base(status)
 {
 }
 /// <summary>
 /// コンストラクタ
 /// </summary>
 public FirefoxCookieGetter(CookieStatus status)
     : base(status)
 {
 }
Example #9
0
 public GoogleChromeCookieGetter(CookieStatus status)
     : base(status)
 {
 }