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

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

Issue 1121053002: Add metrics for dialogs triggered inside sandboxed documents. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/frame/LocalDOMWindow.cpp ('k') | no next file » | 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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, 701 FullscreenSecureOrigin = 765,
702 FullscreenInsecureOrigin = 766, 702 FullscreenInsecureOrigin = 766,
703 DialogInSandboxedContext = 767,
703 704
704 // Add new features immediately above this line. Don't change assigned 705 // Add new features immediately above this line. Don't change assigned
705 // numbers of any item, and don't reuse removed slots. 706 // numbers of any item, and don't reuse removed slots.
706 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ 707 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/
707 // to update the UMA mapping. 708 // to update the UMA mapping.
708 NumberOfFeatures, // This enum value must be last. 709 NumberOfFeatures, // This enum value must be last.
709 }; 710 };
710 711
711 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 712 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
712 static void count(const Frame*, Feature); 713 static void count(const Frame*, Feature);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 797
797 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); } 798 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); }
798 799
799 CountBits m_countBits; 800 CountBits m_countBits;
800 BitVector m_CSSFeatureBits; 801 BitVector m_CSSFeatureBits;
801 }; 802 };
802 803
803 } // namespace blink 804 } // namespace blink
804 805
805 #endif // UseCounter_h 806 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « Source/core/frame/LocalDOMWindow.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698