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

Side by Side Diff: Source/core/dom/ScriptLoader.h

Issue 1304043002: Make classes and structures in core/dom fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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 | « Source/core/dom/ScopedWindowFocusAllowedIndicator.h ('k') | Source/core/dom/SpaceSplitString.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 20 matching lines...) Expand all
31 #include "wtf/text/WTFString.h" 31 #include "wtf/text/WTFString.h"
32 32
33 namespace blink { 33 namespace blink {
34 34
35 class Element; 35 class Element;
36 class ScriptLoaderClient; 36 class ScriptLoaderClient;
37 class ScriptSourceCode; 37 class ScriptSourceCode;
38 38
39 39
40 class CORE_EXPORT ScriptLoader : public NoBaseWillBeGarbageCollectedFinalized<Sc riptLoader>, private ScriptResourceClient { 40 class CORE_EXPORT ScriptLoader : public NoBaseWillBeGarbageCollectedFinalized<Sc riptLoader>, private ScriptResourceClient {
41 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(ScriptLoader);
41 public: 42 public:
42 static PassOwnPtrWillBeRawPtr<ScriptLoader> create(Element* element, bool cr eatedByParser, bool isEvaluated) 43 static PassOwnPtrWillBeRawPtr<ScriptLoader> create(Element* element, bool cr eatedByParser, bool isEvaluated)
43 { 44 {
44 return adoptPtrWillBeNoop(new ScriptLoader(element, createdByParser, isE valuated)); 45 return adoptPtrWillBeNoop(new ScriptLoader(element, createdByParser, isE valuated));
45 } 46 }
46 47
47 ~ScriptLoader() override; 48 ~ScriptLoader() override;
48 DECLARE_VIRTUAL_TRACE(); 49 DECLARE_VIRTUAL_TRACE();
49 50
50 Element* element() const { return m_element; } 51 Element* element() const { return m_element; }
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 bool m_willExecuteWhenDocumentFinishedParsing : 1; 117 bool m_willExecuteWhenDocumentFinishedParsing : 1;
117 bool m_forceAsync : 1; 118 bool m_forceAsync : 1;
118 bool m_willExecuteInOrder : 1; 119 bool m_willExecuteInOrder : 1;
119 }; 120 };
120 121
121 ScriptLoader* toScriptLoaderIfPossible(Element*); 122 ScriptLoader* toScriptLoaderIfPossible(Element*);
122 123
123 } // namespace blink 124 } // namespace blink
124 125
125 #endif // ScriptLoader_h 126 #endif // ScriptLoader_h
OLDNEW
« no previous file with comments | « Source/core/dom/ScopedWindowFocusAllowedIndicator.h ('k') | Source/core/dom/SpaceSplitString.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698