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

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

Issue 1287273002: [Fetch] Add a deprecation warning for Request.context (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Provide a link in messages. Created 5 years, 4 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/modules/fetch/Request.idl » ('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 950 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 961
962 case PrefixedPerformanceClearResourceTimings: 962 case PrefixedPerformanceClearResourceTimings:
963 return replacedBy("Performance.webkitClearResourceTimings", "Performance .clearResourceTimings"); 963 return replacedBy("Performance.webkitClearResourceTimings", "Performance .clearResourceTimings");
964 964
965 case PrefixedPerformanceSetResourceTimingBufferSize: 965 case PrefixedPerformanceSetResourceTimingBufferSize:
966 return replacedBy("Performance.webkitSetResourceTimingBufferSize", "Perf ormance.setResourceTimingBufferSize"); 966 return replacedBy("Performance.webkitSetResourceTimingBufferSize", "Perf ormance.setResourceTimingBufferSize");
967 967
968 case PrefixedPerformanceResourceTimingBufferFull: 968 case PrefixedPerformanceResourceTimingBufferFull:
969 return replacedBy("Performance.onwebkitresourcetimingbufferfull", "Perfo rmance.onresourcetimingbufferfull"); 969 return replacedBy("Performance.onwebkitresourcetimingbufferfull", "Perfo rmance.onresourcetimingbufferfull");
970 970
971 case FetchAPIRequestContext:
972 return "Request.context is deprecated and will be removed in M46 (see: h ttps://www.chromestatus.com/feature/5534702526005248).";
973
971 // Features that aren't deprecated don't have a deprecation message. 974 // Features that aren't deprecated don't have a deprecation message.
972 default: 975 default:
973 return String(); 976 return String();
974 } 977 }
975 } 978 }
976 979
977 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) 980 void UseCounter::count(CSSParserContext context, CSSPropertyID feature)
978 { 981 {
979 ASSERT(feature >= firstCSSProperty); 982 ASSERT(feature >= firstCSSProperty);
980 ASSERT(feature <= lastUnresolvedCSSProperty); 983 ASSERT(feature <= lastUnresolvedCSSProperty);
(...skipping 27 matching lines...) Expand all
1008 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 1011 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
1009 { 1012 {
1010 // FIXME: We may want to handle stylesheets that have multiple owners 1013 // FIXME: We may want to handle stylesheets that have multiple owners
1011 // http://crbug.com/242125 1014 // http://crbug.com/242125
1012 if (sheetContents && sheetContents->hasSingleOwnerNode()) 1015 if (sheetContents && sheetContents->hasSingleOwnerNode())
1013 return getFrom(sheetContents->singleOwnerDocument()); 1016 return getFrom(sheetContents->singleOwnerDocument());
1014 return 0; 1017 return 0;
1015 } 1018 }
1016 1019
1017 } // namespace blink 1020 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/frame/UseCounter.h ('k') | Source/modules/fetch/Request.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698