OLD | NEW |
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 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1042 // Use countDeprecationIfNotPrivateScript() instead of countDeprecation() | 1042 // Use countDeprecationIfNotPrivateScript() instead of countDeprecation() |
1043 // if you don't want to count metrics in private scripts. You should use | 1043 // if you don't want to count metrics in private scripts. You should use |
1044 // countDeprecationIfNotPrivateScript() in a binding layer. | 1044 // countDeprecationIfNotPrivateScript() in a binding layer. |
1045 static void countDeprecationIfNotPrivateScript(v8::Isolate*, ExecutionContex
t*, Feature); | 1045 static void countDeprecationIfNotPrivateScript(v8::Isolate*, ExecutionContex
t*, Feature); |
1046 static String deprecationMessage(Feature); | 1046 static String deprecationMessage(Feature); |
1047 | 1047 |
1048 // Count only features if they're being used in an iframe which does not | 1048 // Count only features if they're being used in an iframe which does not |
1049 // have script access into the top level document. | 1049 // have script access into the top level document. |
1050 static void countCrossOriginIframe(const Document&, Feature); | 1050 static void countCrossOriginIframe(const Document&, Feature); |
1051 | 1051 |
| 1052 // TODO (nainar): Migrate all console message functions to Deprecation |
| 1053 static String willBeRemoved(const char* feature, int milestone, const char*
details); |
| 1054 |
1052 // Return whether the Feature was previously counted for this document. | 1055 // Return whether the Feature was previously counted for this document. |
1053 // NOTE: only for use in testing. | 1056 // NOTE: only for use in testing. |
1054 static bool isCounted(Document&, Feature); | 1057 static bool isCounted(Document&, Feature); |
1055 | 1058 |
1056 void didCommitLoad(); | 1059 void didCommitLoad(); |
1057 | 1060 |
1058 static UseCounter* getFrom(const Document*); | 1061 static UseCounter* getFrom(const Document*); |
1059 static UseCounter* getFrom(const CSSStyleSheet*); | 1062 static UseCounter* getFrom(const CSSStyleSheet*); |
1060 static UseCounter* getFrom(const StyleSheetContents*); | 1063 static UseCounter* getFrom(const StyleSheetContents*); |
1061 | 1064 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1104 | 1107 |
1105 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } | 1108 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } |
1106 | 1109 |
1107 CountBits m_countBits; | 1110 CountBits m_countBits; |
1108 BitVector m_CSSFeatureBits; | 1111 BitVector m_CSSFeatureBits; |
1109 }; | 1112 }; |
1110 | 1113 |
1111 } // namespace blink | 1114 } // namespace blink |
1112 | 1115 |
1113 #endif // UseCounter_h | 1116 #endif // UseCounter_h |
OLD | NEW |