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

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

Issue 1362813002: CSP source *.x.y should not match host x.y (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Test fixes 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 | Annotate | Revision Log
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 823 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 NetInfoOnTypeChange = 949, 834 NetInfoOnTypeChange = 949,
835 V8Window_Alert_Method = 950, 835 V8Window_Alert_Method = 950,
836 V8Window_Confirm_Method = 951, 836 V8Window_Confirm_Method = 951,
837 V8Window_Prompt_Method = 952, 837 V8Window_Prompt_Method = 952,
838 V8Window_Print_Method = 953, 838 V8Window_Print_Method = 953,
839 V8Window_RequestIdleCallback_Method = 954, 839 V8Window_RequestIdleCallback_Method = 954,
840 FlexboxPercentagePaddingVertical = 955, 840 FlexboxPercentagePaddingVertical = 955,
841 FlexboxPercentageMarginVertical = 956, 841 FlexboxPercentageMarginVertical = 956,
842 BackspaceNavigatedBack = 957, 842 BackspaceNavigatedBack = 957,
843 BackspaceNavigatedBackAfterFormInteraction = 958, 843 BackspaceNavigatedBackAfterFormInteraction = 958,
844 CSPSourceWildcardWouldMatchExactHost = 959,
844 845
845 // Add new features immediately above this line. Don't change assigned 846 // Add new features immediately above this line. Don't change assigned
846 // numbers of any item, and don't reuse removed slots. 847 // numbers of any item, and don't reuse removed slots.
847 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ 848 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/
848 // to update the UMA mapping. 849 // to update the UMA mapping.
849 NumberOfFeatures, // This enum value must be last. 850 NumberOfFeatures, // This enum value must be last.
850 }; 851 };
851 852
852 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 853 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
853 static void count(const Frame*, Feature); 854 static void count(const Frame*, Feature);
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 939
939 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); } 940 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); }
940 941
941 CountBits m_countBits; 942 CountBits m_countBits;
942 BitVector m_CSSFeatureBits; 943 BitVector m_CSSFeatureBits;
943 }; 944 };
944 945
945 } // namespace blink 946 } // namespace blink
946 947
947 #endif // UseCounter_h 948 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/security/contentSecurityPolicy/source-list-parsing-11.html ('k') | Source/core/frame/csp/CSPSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698