| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef OriginsUsingFeatures_h | 5 #ifndef OriginsUsingFeatures_h |
| 6 #define OriginsUsingFeatures_h | 6 #define OriginsUsingFeatures_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 #include "wtf/HashMap.h" | 10 #include "wtf/HashMap.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 enum class Feature { | 27 enum class Feature { |
| 28 ElementCreateShadowRoot, | 28 ElementCreateShadowRoot, |
| 29 DocumentRegisterElement, | 29 DocumentRegisterElement, |
| 30 EventPath, | 30 EventPath, |
| 31 DeviceMotionInsecureOrigin, | 31 DeviceMotionInsecureOrigin, |
| 32 DeviceOrientationInsecureOrigin, | 32 DeviceOrientationInsecureOrigin, |
| 33 FullscreenInsecureOrigin, | 33 FullscreenInsecureOrigin, |
| 34 GeolocationInsecureOrigin, | 34 GeolocationInsecureOrigin, |
| 35 GetUserMediaInsecureOrigin, | 35 GetUserMediaInsecureOrigin, |
| 36 GetUserMediaSecureOrigin, | 36 GetUserMediaSecureOrigin, |
| 37 ElementAttachShadow, |
| 37 | 38 |
| 38 NumberOfFeatures // This must be the last item. | 39 NumberOfFeatures // This must be the last item. |
| 39 }; | 40 }; |
| 40 | 41 |
| 41 static void countAnyWorld(Document&, Feature); | 42 static void countAnyWorld(Document&, Feature); |
| 42 static void countMainWorldOnly(const ScriptState*, Document&, Feature); | 43 static void countMainWorldOnly(const ScriptState*, Document&, Feature); |
| 43 static void countOriginOrIsolatedWorldHumanReadableName(const ScriptState*,
EventTarget&, Feature); | 44 static void countOriginOrIsolatedWorldHumanReadableName(const ScriptState*,
EventTarget&, Feature); |
| 44 | 45 |
| 45 void documentDetached(Document&); | 46 void documentDetached(Document&); |
| 46 void updateMeasurementsAndClear(); | 47 void updateMeasurementsAndClear(); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 72 void recordOriginsToRappor(); | 73 void recordOriginsToRappor(); |
| 73 void recordNamesToRappor(); | 74 void recordNamesToRappor(); |
| 74 | 75 |
| 75 Vector<std::pair<String, OriginsUsingFeatures::Value>, 1> m_originAndValues; | 76 Vector<std::pair<String, OriginsUsingFeatures::Value>, 1> m_originAndValues; |
| 76 HashMap<String, OriginsUsingFeatures::Value> m_valueByName; | 77 HashMap<String, OriginsUsingFeatures::Value> m_valueByName; |
| 77 }; | 78 }; |
| 78 | 79 |
| 79 } // namespace blink | 80 } // namespace blink |
| 80 | 81 |
| 81 #endif // OriginsUsingFeatures_h | 82 #endif // OriginsUsingFeatures_h |
| OLD | NEW |