Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(706)

Side by Side Diff: third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.h

Issue 2027333003: Avoid unnecessary uses of GarbageCollectedFinalized<>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/dom/custom/CustomElementReactionStack.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CustomElementsRegistry_h 5 #ifndef CustomElementsRegistry_h
6 #define CustomElementsRegistry_h 6 #define CustomElementsRegistry_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 #include "wtf/Noncopyable.h" 11 #include "wtf/Noncopyable.h"
12 #include "wtf/text/AtomicString.h" 12 #include "wtf/text/AtomicString.h"
13 #include "wtf/text/AtomicStringHash.h" 13 #include "wtf/text/AtomicStringHash.h"
14 14
15 namespace blink { 15 namespace blink {
16 16
17 class CustomElementDefinition; 17 class CustomElementDefinition;
18 class CustomElementDefinitionBuilder; 18 class CustomElementDefinitionBuilder;
19 class ElementRegistrationOptions; 19 class ElementRegistrationOptions;
20 class ExceptionState; 20 class ExceptionState;
21 class ScriptState; 21 class ScriptState;
22 class ScriptValue; 22 class ScriptValue;
23 class V0CustomElementRegistrationContext; 23 class V0CustomElementRegistrationContext;
24 24
25 class CORE_EXPORT CustomElementsRegistry final 25 class CORE_EXPORT CustomElementsRegistry final
26 : public GarbageCollectedFinalized<CustomElementsRegistry> 26 : public GarbageCollected<CustomElementsRegistry>
27 , public ScriptWrappable { 27 , public ScriptWrappable {
28 DEFINE_WRAPPERTYPEINFO(); 28 DEFINE_WRAPPERTYPEINFO();
29 WTF_MAKE_NONCOPYABLE(CustomElementsRegistry); 29 WTF_MAKE_NONCOPYABLE(CustomElementsRegistry);
30 public: 30 public:
31 static CustomElementsRegistry* create( 31 static CustomElementsRegistry* create(
32 V0CustomElementRegistrationContext*); 32 V0CustomElementRegistrationContext*);
33 33
34 void define( 34 void define(
35 ScriptState*, 35 ScriptState*,
36 const AtomicString& name, 36 const AtomicString& name,
(...skipping 23 matching lines...) Expand all
60 using DefinitionMap = 60 using DefinitionMap =
61 HeapHashMap<AtomicString, Member<CustomElementDefinition>>; 61 HeapHashMap<AtomicString, Member<CustomElementDefinition>>;
62 DefinitionMap m_definitions; 62 DefinitionMap m_definitions;
63 63
64 Member<const V0CustomElementRegistrationContext> m_v0; 64 Member<const V0CustomElementRegistrationContext> m_v0;
65 }; 65 };
66 66
67 } // namespace blink 67 } // namespace blink
68 68
69 #endif // CustomElementsRegistry_h 69 #endif // CustomElementsRegistry_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/custom/CustomElementReactionStack.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698