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

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

Issue 329323002: Deprecate support for xhr.withCredentials for synchronous requests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased with latest Created 6 years, 6 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
OLDNEW
1 1
2 /* 2 /*
3 * Copyright (C) 2012 Google, Inc. All rights reserved. 3 * Copyright (C) 2012 Google, Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 727
728 case OverflowChangedEvent: 728 case OverflowChangedEvent:
729 return "The 'overflowchanged' event is deprecated and may be removed. Pl ease do not use it."; 729 return "The 'overflowchanged' event is deprecated and may be removed. Pl ease do not use it.";
730 730
731 case HTMLHeadElementProfile: 731 case HTMLHeadElementProfile:
732 return "'HTMLHeadElement.profile' is deprecated. The reflected attribute has no effect."; 732 return "'HTMLHeadElement.profile' is deprecated. The reflected attribute has no effect.";
733 733
734 case ElementSetPrefix: 734 case ElementSetPrefix:
735 return "Setting 'Element.prefix' is deprecated, as it is read-only per D OM (http://dom.spec.whatwg.org/#element)."; 735 return "Setting 'Element.prefix' is deprecated, as it is read-only per D OM (http://dom.spec.whatwg.org/#element).";
736 736
737 case SyncXHRWithCredentials:
738 return "Setting 'XMLHttpRequest.withCredentials' for synchronous request s is deprecated.";
739
737 // Features that aren't deprecated don't have a deprecation message. 740 // Features that aren't deprecated don't have a deprecation message.
738 default: 741 default:
739 return String(); 742 return String();
740 } 743 }
741 } 744 }
742 745
743 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) 746 void UseCounter::count(CSSParserContext context, CSSPropertyID feature)
744 { 747 {
745 ASSERT(feature >= firstCSSProperty); 748 ASSERT(feature >= firstCSSProperty);
746 ASSERT(feature <= lastCSSProperty); 749 ASSERT(feature <= lastCSSProperty);
(...skipping 28 matching lines...) Expand all
775 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 778 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
776 { 779 {
777 // FIXME: We may want to handle stylesheets that have multiple owners 780 // FIXME: We may want to handle stylesheets that have multiple owners
778 // http://crbug.com/242125 781 // http://crbug.com/242125
779 if (sheetContents && sheetContents->hasSingleOwnerNode()) 782 if (sheetContents && sheetContents->hasSingleOwnerNode())
780 return getFrom(sheetContents->singleOwnerDocument()); 783 return getFrom(sheetContents->singleOwnerDocument());
781 return 0; 784 return 0;
782 } 785 }
783 786
784 } // namespace WebCore 787 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698