| 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 "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 9 #include "wtf/HashMap.h" | 10 #include "wtf/HashMap.h" |
| 10 #include "wtf/Vector.h" | 11 #include "wtf/Vector.h" |
| 11 #include "wtf/text/StringHash.h" | 12 #include "wtf/text/StringHash.h" |
| 12 #include "wtf/text/WTFString.h" | 13 #include "wtf/text/WTFString.h" |
| 13 | 14 |
| 14 namespace blink { | 15 namespace blink { |
| 15 | 16 |
| 16 class Document; | 17 class Document; |
| 17 class EventTarget; | 18 class EventTarget; |
| 18 class ScriptState; | 19 class ScriptState; |
| 19 | 20 |
| 20 class OriginsUsingFeatures { | 21 class CORE_EXPORT OriginsUsingFeatures { |
| 21 DISALLOW_ALLOCATION(); | 22 DISALLOW_ALLOCATION(); |
| 22 public: | 23 public: |
| 23 ~OriginsUsingFeatures(); | 24 ~OriginsUsingFeatures(); |
| 24 | 25 |
| 25 enum class Feature { | 26 enum class Feature { |
| 26 ElementCreateShadowRoot, | 27 ElementCreateShadowRoot, |
| 27 DocumentRegisterElement, | 28 DocumentRegisterElement, |
| 28 EventPath, | 29 EventPath, |
| 29 | 30 |
| 30 NumberOfFeatures // This must be the last item. | 31 NumberOfFeatures // This must be the last item. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 void recordOriginsToRappor(); | 63 void recordOriginsToRappor(); |
| 63 void recordNamesToRappor(); | 64 void recordNamesToRappor(); |
| 64 | 65 |
| 65 Vector<std::pair<String, OriginsUsingFeatures::Value>, 1> m_originAndValues; | 66 Vector<std::pair<String, OriginsUsingFeatures::Value>, 1> m_originAndValues; |
| 66 HashMap<String, OriginsUsingFeatures::Value> m_valueByName; | 67 HashMap<String, OriginsUsingFeatures::Value> m_valueByName; |
| 67 }; | 68 }; |
| 68 | 69 |
| 69 } // namespace blink | 70 } // namespace blink |
| 70 | 71 |
| 71 #endif // OriginsUsingFeatures_h | 72 #endif // OriginsUsingFeatures_h |
| OLD | NEW |