net\System\Net\cookie.cs (70)
894CookieToken m_token;
941internal CookieToken Token {
1033internal CookieToken FindNext(bool ignoreComma, bool ignoreEquals) {
1041CookieToken token = CookieToken.End;
1088token = CookieToken.EndToken;
1092token = CookieToken.Equals;
1096token = CookieToken.EndCookie;
1189internal CookieToken Next(bool first, bool parseResponseCookies) {
1193CookieToken terminator = FindNext(false, false);
1194if (terminator == CookieToken.EndCookie) {
1198if ((terminator == CookieToken.End) || (terminator == CookieToken.EndCookie)) {
1201return CookieToken.Attribute;
1207Token = CookieToken.CookieName;
1212if (terminator == CookieToken.Equals) {
1213terminator = FindNext(!first && (Token == CookieToken.Expires), true);
1214if (terminator == CookieToken.EndCookie) {
1218return CookieToken.NameValuePair;
1221return CookieToken.Attribute;
1237m_token = CookieToken.Nothing;
1245CookieToken m_token;
1247internal RecognizedAttribute(string name, CookieToken token) {
1252internal CookieToken Token {
1268new RecognizedAttribute(Cookie.PathAttributeName, CookieToken.Path),
1269new RecognizedAttribute(Cookie.MaxAgeAttributeName, CookieToken.MaxAge),
1270new RecognizedAttribute(Cookie.ExpiresAttributeName, CookieToken.Expires),
1271new RecognizedAttribute(Cookie.VersionAttributeName, CookieToken.Version),
1272new RecognizedAttribute(Cookie.DomainAttributeName, CookieToken.Domain),
1273new RecognizedAttribute(Cookie.SecureAttributeName, CookieToken.Secure),
1274new RecognizedAttribute(Cookie.DiscardAttributeName, CookieToken.Discard),
1275new RecognizedAttribute(Cookie.PortAttributeName, CookieToken.Port),
1276new RecognizedAttribute(Cookie.CommentAttributeName, CookieToken.Comment),
1277new RecognizedAttribute(Cookie.CommentUrlAttributeName, CookieToken.CommentUrl),
1278new RecognizedAttribute(Cookie.HttpOnlyAttributeName, CookieToken.HttpOnly),
1282new RecognizedAttribute('$' + Cookie.PathAttributeName, CookieToken.Path),
1283new RecognizedAttribute('$' + Cookie.VersionAttributeName, CookieToken.Version),
1284new RecognizedAttribute('$' + Cookie.DomainAttributeName, CookieToken.Domain),
1285new RecognizedAttribute('$' + Cookie.PortAttributeName, CookieToken.Port),
1286new RecognizedAttribute('$' + Cookie.HttpOnlyAttributeName, CookieToken.HttpOnly),
1289internal CookieToken TokenFromName(bool parseResponseCookies) {
1304return CookieToken.Unknown;
1368CookieToken token = m_tokenizer.Next(cookie==null, true);
1369if (cookie==null && (token==CookieToken.NameValuePair || token==CookieToken.Attribute)) {
1379case CookieToken.NameValuePair:
1381case CookieToken.Comment:
1388case CookieToken.CommentUrl:
1398case CookieToken.Domain:
1406case CookieToken.Expires:
1422case CookieToken.MaxAge:
1436case CookieToken.Path:
1443case CookieToken.Port:
1456case CookieToken.Version:
1473case CookieToken.Attribute:
1475case CookieToken.Discard:
1482case CookieToken.Secure:
1489case CookieToken.HttpOnly:
1493case CookieToken.Port:
1521CookieToken token = m_tokenizer.Next(first, false);
1523if (first && (token==CookieToken.NameValuePair || token==CookieToken.Attribute)) {
1535case CookieToken.NameValuePair:
1537case CookieToken.Domain:
1545case CookieToken.Path:
1552case CookieToken.Port:
1565case CookieToken.Version:
1574case CookieToken.Unknown:
1587case CookieToken.Attribute:
1589case CookieToken.Port: