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

Unified Diff: third_party/WebKit/Source/core/workers/WorkletGlobalScope.h

Issue 2871503003: Worklet: Move common code from Worker/WorkletGlobalScope to WorkerOrWorkletGlobalScope (Closed)
Patch Set: fix rebase failure 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/workers/WorkletGlobalScope.h
diff --git a/third_party/WebKit/Source/core/workers/WorkletGlobalScope.h b/third_party/WebKit/Source/core/workers/WorkletGlobalScope.h
index 5fcde1b815877984115b1383b633eaf0cf3a291a..c0947f6fa6280154f76a1871a4266755d58074af 100644
--- a/third_party/WebKit/Source/core/workers/WorkletGlobalScope.h
+++ b/third_party/WebKit/Source/core/workers/WorkletGlobalScope.h
@@ -17,7 +17,6 @@
namespace blink {
class EventQueue;
-class WorkerOrWorkletScriptController;
class CORE_EXPORT WorkletGlobalScope
: public GarbageCollectedFinalized<WorkletGlobalScope>,
@@ -29,7 +28,6 @@ class CORE_EXPORT WorkletGlobalScope
public:
~WorkletGlobalScope() override;
- void Dispose() override;
bool IsWorkletGlobalScope() const final { return true; }
@@ -37,9 +35,6 @@ class CORE_EXPORT WorkletGlobalScope
ScriptWrappable* GetScriptWrappable() const final {
return const_cast<WorkletGlobalScope*>(this);
}
- WorkerOrWorkletScriptController* ScriptController() final {
- return script_controller_.Get();
- }
// Always returns false here as worklets don't have a #close() method on
// the global.
@@ -54,8 +49,6 @@ class CORE_EXPORT WorkletGlobalScope
v8::Local<v8::Object> wrapper) final;
// ExecutionContext
- void DisableEval(const String& error_message) final;
- bool IsJSExecutionForbidden() const final;
String UserAgent() const final { return user_agent_; }
SecurityContext& GetSecurityContext() final { return *this; }
EventQueue* GetEventQueue() const final {
@@ -91,7 +84,6 @@ class CORE_EXPORT WorkletGlobalScope
KURL url_;
String user_agent_;
- Member<WorkerOrWorkletScriptController> script_controller_;
};
DEFINE_TYPE_CASTS(WorkletGlobalScope,

Powered by Google App Engine
This is Rietveld 408576698