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

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

Issue 2798383002: [local; kouhei 3] kouhei's ScriptLoader-part (for quick testing) (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | third_party/WebKit/Source/core/dom/ScriptLoader.cpp » ('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 16 matching lines...) Expand all
27 #include "core/loader/resource/ScriptResource.h" 27 #include "core/loader/resource/ScriptResource.h"
28 #include "platform/loader/fetch/FetchRequest.h" 28 #include "platform/loader/fetch/FetchRequest.h"
29 #include "platform/loader/fetch/ResourceClient.h" 29 #include "platform/loader/fetch/ResourceClient.h"
30 #include "wtf/text/TextPosition.h" 30 #include "wtf/text/TextPosition.h"
31 #include "wtf/text/WTFString.h" 31 #include "wtf/text/WTFString.h"
32 32
33 namespace blink { 33 namespace blink {
34 34
35 class ScriptElementBase; 35 class ScriptElementBase;
36 class Script; 36 class Script;
37 class ScriptElementModuleClient;
38 class ScriptSourceCode;
37 39
38 class CORE_EXPORT ScriptLoader : public GarbageCollectedFinalized<ScriptLoader>, 40 class CORE_EXPORT ScriptLoader : public GarbageCollectedFinalized<ScriptLoader>,
39 public PendingScriptClient { 41 public PendingScriptClient {
40 USING_GARBAGE_COLLECTED_MIXIN(ScriptLoader); 42 USING_GARBAGE_COLLECTED_MIXIN(ScriptLoader);
41 43
42 public: 44 public:
43 static ScriptLoader* create(ScriptElementBase* element, 45 static ScriptLoader* create(ScriptElementBase* element,
44 bool createdByParser, 46 bool createdByParser,
45 bool isEvaluated, 47 bool isEvaluated,
46 bool createdDuringDocumentWrite = false) { 48 bool createdDuringDocumentWrite = false) {
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 // If a parser blocking doc.written script was not fetched and was not 182 // If a parser blocking doc.written script was not fetched and was not
181 // present in the http cache, send a GET for it with an interventions 183 // present in the http cache, send a GET for it with an interventions
182 // header to allow the server to know of the intervention. This fetch 184 // header to allow the server to know of the intervention. This fetch
183 // will be using DeferOption::IdleLoad to keep it out of the critical 185 // will be using DeferOption::IdleLoad to keep it out of the critical
184 // path. 186 // path.
185 FetchDocWrittenScriptDeferIdle, 187 FetchDocWrittenScriptDeferIdle,
186 }; 188 };
187 189
188 DocumentWriteIntervention m_documentWriteIntervention; 190 DocumentWriteIntervention m_documentWriteIntervention;
189 191
192 Member<ScriptElementModuleClient> m_elementModuleClient;
190 Member<PendingScript> m_pendingScript; 193 Member<PendingScript> m_pendingScript;
191 }; 194 };
192 195
193 } // namespace blink 196 } // namespace blink
194 197
195 #endif // ScriptLoader_h 198 #endif // ScriptLoader_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/ScriptLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698