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

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

Issue 1378543002: Add UMA for header values in XHR's setRequestHeader() checked against RFC 7230 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reflected tyoshino's comments. Created 5 years, 2 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 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 V8Window_Alert_Method = 950, 832 V8Window_Alert_Method = 950,
833 V8Window_Confirm_Method = 951, 833 V8Window_Confirm_Method = 951,
834 V8Window_Prompt_Method = 952, 834 V8Window_Prompt_Method = 952,
835 V8Window_Print_Method = 953, 835 V8Window_Print_Method = 953,
836 V8Window_RequestIdleCallback_Method = 954, 836 V8Window_RequestIdleCallback_Method = 954,
837 FlexboxPercentagePaddingVertical = 955, 837 FlexboxPercentagePaddingVertical = 955,
838 FlexboxPercentageMarginVertical = 956, 838 FlexboxPercentageMarginVertical = 956,
839 BackspaceNavigatedBack = 957, 839 BackspaceNavigatedBack = 957,
840 BackspaceNavigatedBackAfterFormInteraction = 958, 840 BackspaceNavigatedBackAfterFormInteraction = 958,
841 CSPSourceWildcardWouldMatchExactHost = 959, 841 CSPSourceWildcardWouldMatchExactHost = 959,
842 XHRSetRequestHeaderAffectedByNormalization = 960,
842 843
843 // Add new features immediately above this line. Don't change assigned 844 // Add new features immediately above this line. Don't change assigned
844 // numbers of any item, and don't reuse removed slots. 845 // numbers of any item, and don't reuse removed slots.
845 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ 846 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/
846 // to update the UMA mapping. 847 // to update the UMA mapping.
847 NumberOfFeatures, // This enum value must be last. 848 NumberOfFeatures, // This enum value must be last.
848 }; 849 };
849 850
850 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 851 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
851 static void count(const Frame*, Feature); 852 static void count(const Frame*, Feature);
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 937
937 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); } 938 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); }
938 939
939 CountBits m_countBits; 940 CountBits m_countBits;
940 BitVector m_CSSFeatureBits; 941 BitVector m_CSSFeatureBits;
941 }; 942 };
942 943
943 } // namespace blink 944 } // namespace blink
944 945
945 #endif // UseCounter_h 946 #endif // UseCounter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698