Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(963)

Side by Side Diff: Source/core/frame/UseCounter.cpp

Issue 1018903002: Show deprecation warnings for header values in XHR according to RFC 7230 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/frame/UseCounter.h ('k') | Source/core/xmlhttprequest/XMLHttpRequest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google, Inc. All rights reserved. 2 * Copyright (C) 2012 Google, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after
965 965
966 case PrefixedPerformanceSetResourceTimingBufferSize: 966 case PrefixedPerformanceSetResourceTimingBufferSize:
967 return replacedBy("Performance.webkitSetResourceTimingBufferSize", "Perf ormance.setResourceTimingBufferSize"); 967 return replacedBy("Performance.webkitSetResourceTimingBufferSize", "Perf ormance.setResourceTimingBufferSize");
968 968
969 case PrefixedPerformanceResourceTimingBufferFull: 969 case PrefixedPerformanceResourceTimingBufferFull:
970 return replacedBy("Performance.onwebkitresourcetimingbufferfull", "Perfo rmance.onresourcetimingbufferfull"); 970 return replacedBy("Performance.onwebkitresourcetimingbufferfull", "Perfo rmance.onresourcetimingbufferfull");
971 971
972 case FetchAPIRequestContext: 972 case FetchAPIRequestContext:
973 return "Request.context is deprecated and will be removed in M46 (see: h ttps://www.chromestatus.com/feature/5534702526005248)."; 973 return "Request.context is deprecated and will be removed in M46 (see: h ttps://www.chromestatus.com/feature/5534702526005248).";
974 974
975 case HeaderValueNotMatchingRFC7230:
976 return "Header values not matching to RFC 7230, will be deprecated (see: https://www.chromestatus.com/feature/6457425448140800).";
977
975 // Features that aren't deprecated don't have a deprecation message. 978 // Features that aren't deprecated don't have a deprecation message.
976 default: 979 default:
977 return String(); 980 return String();
978 } 981 }
979 } 982 }
980 983
981 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) 984 void UseCounter::count(CSSParserContext context, CSSPropertyID feature)
982 { 985 {
983 ASSERT(feature >= firstCSSProperty); 986 ASSERT(feature >= firstCSSProperty);
984 ASSERT(feature <= lastUnresolvedCSSProperty); 987 ASSERT(feature <= lastUnresolvedCSSProperty);
(...skipping 27 matching lines...) Expand all
1012 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 1015 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
1013 { 1016 {
1014 // FIXME: We may want to handle stylesheets that have multiple owners 1017 // FIXME: We may want to handle stylesheets that have multiple owners
1015 // http://crbug.com/242125 1018 // http://crbug.com/242125
1016 if (sheetContents && sheetContents->hasSingleOwnerNode()) 1019 if (sheetContents && sheetContents->hasSingleOwnerNode())
1017 return getFrom(sheetContents->singleOwnerDocument()); 1020 return getFrom(sheetContents->singleOwnerDocument());
1018 return 0; 1021 return 0;
1019 } 1022 }
1020 1023
1021 } // namespace blink 1024 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/frame/UseCounter.h ('k') | Source/core/xmlhttprequest/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698