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

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

Issue 1312733003: [HTMLImport] Add an Usecounter if imported ducmnet has stylesheets. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Check if document is loaded 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
« no previous file with comments | « no previous file | Source/core/html/imports/HTMLImportChild.cpp » ('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 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 PresentationRequestJoin = 930, 826 PresentationRequestJoin = 930,
827 PresentationRequestGetAvailability = 931, 827 PresentationRequestGetAvailability = 931,
828 PresentationRequestSessionConnectEventListener = 932, 828 PresentationRequestSessionConnectEventListener = 932,
829 PresentationSessionClose = 933, 829 PresentationSessionClose = 933,
830 PresentationSessionSend = 934, 830 PresentationSessionSend = 934,
831 PresentationSessionStateChangeEventListener = 935, 831 PresentationSessionStateChangeEventListener = 935,
832 PresentationSessionMessageEventListener = 936, 832 PresentationSessionMessageEventListener = 936,
833 CSSAnimationsStackedNeutralKeyframe = 937, 833 CSSAnimationsStackedNeutralKeyframe = 937,
834 ReadingCheckedInClickHandler = 938, 834 ReadingCheckedInClickHandler = 938,
835 FlexboxIntrinsicSizeAlgorithmIsDifferent = 939, 835 FlexboxIntrinsicSizeAlgorithmIsDifferent = 939,
836 HTMLImportsHasStyleSheets = 940,
836 837
837 // Add new features immediately above this line. Don't change assigned 838 // Add new features immediately above this line. Don't change assigned
838 // numbers of any item, and don't reuse removed slots. 839 // numbers of any item, and don't reuse removed slots.
839 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ 840 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/
840 // to update the UMA mapping. 841 // to update the UMA mapping.
841 NumberOfFeatures, // This enum value must be last. 842 NumberOfFeatures, // This enum value must be last.
842 }; 843 };
843 844
844 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 845 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
845 static void count(const Frame*, Feature); 846 static void count(const Frame*, Feature);
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 931
931 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); } 932 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); }
932 933
933 CountBits m_countBits; 934 CountBits m_countBits;
934 BitVector m_CSSFeatureBits; 935 BitVector m_CSSFeatureBits;
935 }; 936 };
936 937
937 } // namespace blink 938 } // namespace blink
938 939
939 #endif // UseCounter_h 940 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/imports/HTMLImportChild.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698