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

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

Issue 2885203006: [DevTools] inline modules should have correct text offset (Closed)
Patch Set: a Created 3 years, 7 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 ModulatorImpl_h 5 #ifndef ModulatorImpl_h
6 #define ModulatorImpl_h 6 #define ModulatorImpl_h
7 7
8 #include "bindings/core/v8/ScriptModule.h" 8 #include "bindings/core/v8/ScriptModule.h"
9 #include "core/dom/Modulator.h" 9 #include "core/dom/Modulator.h"
10 #include "platform/bindings/ScriptWrappable.h" 10 #include "platform/bindings/ScriptWrappable.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 void FetchSingle(const ModuleScriptFetchRequest&, 54 void FetchSingle(const ModuleScriptFetchRequest&,
55 ModuleGraphLevel, 55 ModuleGraphLevel,
56 SingleModuleClient*) override; 56 SingleModuleClient*) override;
57 ModuleScript* GetFetchedModuleScript(const KURL&) override; 57 ModuleScript* GetFetchedModuleScript(const KURL&) override;
58 bool HasValidContext() override; 58 bool HasValidContext() override;
59 void FetchNewSingleModule(const ModuleScriptFetchRequest&, 59 void FetchNewSingleModule(const ModuleScriptFetchRequest&,
60 ModuleGraphLevel, 60 ModuleGraphLevel,
61 ModuleScriptLoaderClient*) override; 61 ModuleScriptLoaderClient*) override;
62 ScriptModule CompileModule(const String& script, 62 ScriptModule CompileModule(const String& script,
63 const String& url_str, 63 const String& url_str,
64 AccessControlStatus) override; 64 AccessControlStatus,
65 const TextPosition&) override;
65 ScriptValue InstantiateModule(ScriptModule) override; 66 ScriptValue InstantiateModule(ScriptModule) override;
66 ScriptValue GetInstantiationError(const ModuleScript*) override; 67 ScriptValue GetInstantiationError(const ModuleScript*) override;
67 Vector<String> ModuleRequestsFromScriptModule(ScriptModule) override; 68 Vector<String> ModuleRequestsFromScriptModule(ScriptModule) override;
68 void ExecuteModule(const ModuleScript*) override; 69 void ExecuteModule(const ModuleScript*) override;
69 70
70 ModulatorImpl(RefPtr<ScriptState>, ResourceFetcher*); 71 ModulatorImpl(RefPtr<ScriptState>, ResourceFetcher*);
71 72
72 ExecutionContext* GetExecutionContext() const; 73 ExecutionContext* GetExecutionContext() const;
73 74
74 RefPtr<ScriptState> script_state_; 75 RefPtr<ScriptState> script_state_;
75 RefPtr<WebTaskRunner> task_runner_; 76 RefPtr<WebTaskRunner> task_runner_;
76 Member<ResourceFetcher> fetcher_; 77 Member<ResourceFetcher> fetcher_;
77 TraceWrapperMember<ModuleMap> map_; 78 TraceWrapperMember<ModuleMap> map_;
78 Member<ModuleScriptLoaderRegistry> loader_registry_; 79 Member<ModuleScriptLoaderRegistry> loader_registry_;
79 Member<ModuleTreeLinkerRegistry> tree_linker_registry_; 80 Member<ModuleTreeLinkerRegistry> tree_linker_registry_;
80 Member<ScriptModuleResolver> script_module_resolver_; 81 Member<ScriptModuleResolver> script_module_resolver_;
81 }; 82 };
82 83
83 } // namespace blink 84 } // namespace blink
84 85
85 #endif 86 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Modulator.h ('k') | third_party/WebKit/Source/core/dom/ModulatorImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698