| 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 995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1006 // doesn't count the usage but only sends a console warning. | 1006 // doesn't count the usage but only sends a console warning. |
| 1007 static void countDeprecation(const LocalFrame*, Feature); | 1007 static void countDeprecation(const LocalFrame*, Feature); |
| 1008 static void countDeprecation(ExecutionContext*, Feature); | 1008 static void countDeprecation(ExecutionContext*, Feature); |
| 1009 static void countDeprecation(const Document&, Feature); | 1009 static void countDeprecation(const Document&, Feature); |
| 1010 // Use countDeprecationIfNotPrivateScript() instead of countDeprecation() | 1010 // Use countDeprecationIfNotPrivateScript() instead of countDeprecation() |
| 1011 // if you don't want to count metrics in private scripts. You should use | 1011 // if you don't want to count metrics in private scripts. You should use |
| 1012 // countDeprecationIfNotPrivateScript() in a binding layer. | 1012 // countDeprecationIfNotPrivateScript() in a binding layer. |
| 1013 static void countDeprecationIfNotPrivateScript(v8::Isolate*, ExecutionContex
t*, Feature); | 1013 static void countDeprecationIfNotPrivateScript(v8::Isolate*, ExecutionContex
t*, Feature); |
| 1014 static String deprecationMessage(Feature); | 1014 static String deprecationMessage(Feature); |
| 1015 | 1015 |
| 1016 // TODO (nainar): Migrate all console message functions to Deprecation |
| 1017 static String willBeRemoved(const char* feature, int milestone, const char*
details); |
| 1016 // Return whether the Feature was previously counted for this document. | 1018 // Return whether the Feature was previously counted for this document. |
| 1017 // NOTE: only for use in testing. | 1019 // NOTE: only for use in testing. |
| 1018 static bool isCounted(Document&, Feature); | 1020 static bool isCounted(Document&, Feature); |
| 1019 | 1021 |
| 1020 void didCommitLoad(); | 1022 void didCommitLoad(); |
| 1021 | 1023 |
| 1022 static UseCounter* getFrom(const Document*); | 1024 static UseCounter* getFrom(const Document*); |
| 1023 static UseCounter* getFrom(const CSSStyleSheet*); | 1025 static UseCounter* getFrom(const CSSStyleSheet*); |
| 1024 static UseCounter* getFrom(const StyleSheetContents*); | 1026 static UseCounter* getFrom(const StyleSheetContents*); |
| 1025 | 1027 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1068 | 1070 |
| 1069 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } | 1071 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } |
| 1070 | 1072 |
| 1071 CountBits m_countBits; | 1073 CountBits m_countBits; |
| 1072 BitVector m_CSSFeatureBits; | 1074 BitVector m_CSSFeatureBits; |
| 1073 }; | 1075 }; |
| 1074 | 1076 |
| 1075 } // namespace blink | 1077 } // namespace blink |
| 1076 | 1078 |
| 1077 #endif // UseCounter_h | 1079 #endif // UseCounter_h |
| OLD | NEW |