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

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

Issue 1115913002: Add deprecation warnings to old powerful features on insecure origins. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updates from nits Created 5 years, 7 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 * 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 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 V8HTMLInputElement_Autocapitalize_AttributeSetter = 755, 691 V8HTMLInputElement_Autocapitalize_AttributeSetter = 755,
692 V8HTMLTextAreaElement_Autocapitalize_AttributeGetter = 756, 692 V8HTMLTextAreaElement_Autocapitalize_AttributeGetter = 756,
693 V8HTMLTextAreaElement_Autocapitalize_AttributeSetter = 757, 693 V8HTMLTextAreaElement_Autocapitalize_AttributeSetter = 757,
694 SVGHrefBaseVal = 758, 694 SVGHrefBaseVal = 758,
695 SVGHrefAnimVal = 759, 695 SVGHrefAnimVal = 759,
696 V8CSSRuleList_Item_Method = 760, 696 V8CSSRuleList_Item_Method = 760,
697 V8MediaList_Item_Method = 761, 697 V8MediaList_Item_Method = 761,
698 V8StyleSheetList_Item_Method = 762, 698 V8StyleSheetList_Item_Method = 762,
699 StyleSheetListAnonymousNamedGetter = 763, 699 StyleSheetListAnonymousNamedGetter = 763,
700 AutocapitalizeAttribute = 764, 700 AutocapitalizeAttribute = 764,
701 FullscreenSecureOrigin = 765,
702 FullscreenInsecureOrigin = 766,
701 703
702 // Add new features immediately above this line. Don't change assigned 704 // Add new features immediately above this line. Don't change assigned
703 // numbers of any item, and don't reuse removed slots. 705 // numbers of any item, and don't reuse removed slots.
704 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ 706 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/
705 // to update the UMA mapping. 707 // to update the UMA mapping.
706 NumberOfFeatures, // This enum value must be last. 708 NumberOfFeatures, // This enum value must be last.
707 }; 709 };
708 710
709 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 711 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
710 static void count(const Frame*, Feature); 712 static void count(const Frame*, Feature);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 796
795 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); } 797 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); }
796 798
797 CountBits m_countBits; 799 CountBits m_countBits;
798 BitVector m_CSSFeatureBits; 800 BitVector m_CSSFeatureBits;
799 }; 801 };
800 802
801 } // namespace blink 803 } // namespace blink
802 804
803 #endif // UseCounter_h 805 #endif // UseCounter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698