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

Side by Side Diff: third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.h

Issue 1601283003: DevTools: deoilpanize inspector/v8 and related classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed. Created 4 years, 11 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 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 WorkletGlobalScope_h 5 #ifndef WorkletGlobalScope_h
6 #define WorkletGlobalScope_h 6 #define WorkletGlobalScope_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/dom/ExecutionContext.h" 9 #include "core/dom/ExecutionContext.h"
10 #include "core/dom/ExecutionContextTask.h" 10 #include "core/dom/ExecutionContextTask.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 DOMTimerCoordinator* timers() final { ASSERT_NOT_REACHED(); return nullptr; } // WorkletGlobalScopes don't have timers. 57 DOMTimerCoordinator* timers() final { ASSERT_NOT_REACHED(); return nullptr; } // WorkletGlobalScopes don't have timers.
58 void postTask(const WebTraceLocation&, PassOwnPtr<ExecutionContextTask>) ove rride 58 void postTask(const WebTraceLocation&, PassOwnPtr<ExecutionContextTask>) ove rride
59 { 59 {
60 // TODO(ikilpatrick): implement. 60 // TODO(ikilpatrick): implement.
61 ASSERT_NOT_REACHED(); 61 ASSERT_NOT_REACHED();
62 } 62 }
63 63
64 // TODO(ikilpatrick): implement when we implement devtools support. 64 // TODO(ikilpatrick): implement when we implement devtools support.
65 void reportBlockedScriptExecutionToInspector(const String& directiveText) fi nal { } 65 void reportBlockedScriptExecutionToInspector(const String& directiveText) fi nal { }
66 void addConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) final { } 66 void addConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) final { }
67 void logExceptionToConsole(const String& errorMessage, int scriptId, const S tring& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<Scrip tCallStack>) final { } 67 void logExceptionToConsole(const String& errorMessage, int scriptId, const S tring& sourceURL, int lineNumber, int columnNumber, PassRefPtr<ScriptCallStack>) final { }
68 68
69 DECLARE_VIRTUAL_TRACE(); 69 DECLARE_VIRTUAL_TRACE();
70 70
71 private: 71 private:
72 #if !ENABLE(OILPAN) 72 #if !ENABLE(OILPAN)
73 void refExecutionContext() final { ref(); } 73 void refExecutionContext() final { ref(); }
74 void derefExecutionContext() final { deref(); } 74 void derefExecutionContext() final { deref(); }
75 #endif 75 #endif
76 76
77 WorkletGlobalScope(const KURL&, const String& userAgent, v8::Isolate*); 77 WorkletGlobalScope(const KURL&, const String& userAgent, v8::Isolate*);
78 78
79 const KURL& virtualURL() const final { return m_url; } 79 const KURL& virtualURL() const final { return m_url; }
80 KURL virtualCompleteURL(const String&) const final; 80 KURL virtualCompleteURL(const String&) const final;
81 81
82 EventTarget* errorEventTarget() final { return nullptr; } 82 EventTarget* errorEventTarget() final { return nullptr; }
83 void didUpdateSecurityOrigin() final { } 83 void didUpdateSecurityOrigin() final { }
84 84
85 KURL m_url; 85 KURL m_url;
86 String m_userAgent; 86 String m_userAgent;
87 OwnPtrWillBeMember<WorkerOrWorkletScriptController> m_script; 87 OwnPtrWillBeMember<WorkerOrWorkletScriptController> m_script;
88 }; 88 };
89 89
90 DEFINE_TYPE_CASTS(WorkletGlobalScope, ExecutionContext, context, context->isWork letGlobalScope(), context.isWorkletGlobalScope()); 90 DEFINE_TYPE_CASTS(WorkletGlobalScope, ExecutionContext, context, context->isWork letGlobalScope(), context.isWorkletGlobalScope());
91 91
92 } // namespace blink 92 } // namespace blink
93 93
94 #endif // WorkletGlobalScope_h 94 #endif // WorkletGlobalScope_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698