| 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 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1018 // doesn't count the usage but only sends a console warning. | 1018 // doesn't count the usage but only sends a console warning. |
| 1019 static void countDeprecation(const LocalFrame*, Feature); | 1019 static void countDeprecation(const LocalFrame*, Feature); |
| 1020 static void countDeprecation(ExecutionContext*, Feature); | 1020 static void countDeprecation(ExecutionContext*, Feature); |
| 1021 static void countDeprecation(const Document&, Feature); | 1021 static void countDeprecation(const Document&, Feature); |
| 1022 // Use countDeprecationIfNotPrivateScript() instead of countDeprecation() | 1022 // Use countDeprecationIfNotPrivateScript() instead of countDeprecation() |
| 1023 // if you don't want to count metrics in private scripts. You should use | 1023 // if you don't want to count metrics in private scripts. You should use |
| 1024 // countDeprecationIfNotPrivateScript() in a binding layer. | 1024 // countDeprecationIfNotPrivateScript() in a binding layer. |
| 1025 static void countDeprecationIfNotPrivateScript(v8::Isolate*, ExecutionContex
t*, Feature); | 1025 static void countDeprecationIfNotPrivateScript(v8::Isolate*, ExecutionContex
t*, Feature); |
| 1026 static String deprecationMessage(Feature); | 1026 static String deprecationMessage(Feature); |
| 1027 | 1027 |
| 1028 // TODO (nainar): Migrate all console message functions to Deprecation |
| 1029 static String willBeRemoved(const char* feature, int milestone, const char*
details); |
| 1028 // Return whether the Feature was previously counted for this document. | 1030 // Return whether the Feature was previously counted for this document. |
| 1029 // NOTE: only for use in testing. | 1031 // NOTE: only for use in testing. |
| 1030 static bool isCounted(Document&, Feature); | 1032 static bool isCounted(Document&, Feature); |
| 1031 | 1033 |
| 1032 void didCommitLoad(); | 1034 void didCommitLoad(); |
| 1033 | 1035 |
| 1034 static UseCounter* getFrom(const Document*); | 1036 static UseCounter* getFrom(const Document*); |
| 1035 static UseCounter* getFrom(const CSSStyleSheet*); | 1037 static UseCounter* getFrom(const CSSStyleSheet*); |
| 1036 static UseCounter* getFrom(const StyleSheetContents*); | 1038 static UseCounter* getFrom(const StyleSheetContents*); |
| 1037 | 1039 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1080 | 1082 |
| 1081 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } | 1083 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } |
| 1082 | 1084 |
| 1083 CountBits m_countBits; | 1085 CountBits m_countBits; |
| 1084 BitVector m_CSSFeatureBits; | 1086 BitVector m_CSSFeatureBits; |
| 1085 }; | 1087 }; |
| 1086 | 1088 |
| 1087 } // namespace blink | 1089 } // namespace blink |
| 1088 | 1090 |
| 1089 #endif // UseCounter_h | 1091 #endif // UseCounter_h |
| OLD | NEW |