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

Side by Side Diff: third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.h

Issue 1992933002: Introduce WorkletGlobalScopeProxy interface. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests. Created 4 years, 6 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 /* 1 /*
2 * Copyright (c) 2011 Google Inc. All rights reserved. 2 * Copyright (c) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 17 matching lines...) Expand all
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WorkerThreadDebugger_h 31 #ifndef WorkerThreadDebugger_h
32 #define WorkerThreadDebugger_h 32 #define WorkerThreadDebugger_h
33 33
34 #include "core/inspector/ThreadDebugger.h" 34 #include "core/inspector/ThreadDebugger.h"
35 35
36 namespace blink { 36 namespace blink {
37 37
38 class WorkerThread; 38 class WorkerOrWorkletThread;
39 39
40 class WorkerThreadDebugger final : public ThreadDebugger { 40 class WorkerThreadDebugger final : public ThreadDebugger {
41 WTF_MAKE_NONCOPYABLE(WorkerThreadDebugger); 41 WTF_MAKE_NONCOPYABLE(WorkerThreadDebugger);
42 public: 42 public:
43 explicit WorkerThreadDebugger(WorkerThread*, v8::Isolate*); 43 explicit WorkerThreadDebugger(WorkerOrWorkletThread*, v8::Isolate*);
44 ~WorkerThreadDebugger() override; 44 ~WorkerThreadDebugger() override;
45 45
46 static WorkerThreadDebugger* from(v8::Isolate*); 46 static WorkerThreadDebugger* from(v8::Isolate*);
47 47
48 int contextGroupId(); 48 int contextGroupId();
49 void contextCreated(v8::Local<v8::Context>); 49 void contextCreated(v8::Local<v8::Context>);
50 void contextWillBeDestroyed(v8::Local<v8::Context>); 50 void contextWillBeDestroyed(v8::Local<v8::Context>);
51 51
52 // V8DebuggerClient implementation. 52 // V8DebuggerClient implementation.
53 void runMessageLoopOnPause(int contextGroupId) override; 53 void runMessageLoopOnPause(int contextGroupId) override;
54 void quitMessageLoopOnPause() override; 54 void quitMessageLoopOnPause() override;
55 void muteWarningsAndDeprecations() override { }; 55 void muteWarningsAndDeprecations() override { };
56 void unmuteWarningsAndDeprecations() override { }; 56 void unmuteWarningsAndDeprecations() override { };
57 void muteConsole() override { }; 57 void muteConsole() override { };
58 void unmuteConsole() override { }; 58 void unmuteConsole() override { };
59 bool callingContextCanAccessContext(v8::Local<v8::Context> calling, v8::Loca l<v8::Context> target) override; 59 bool callingContextCanAccessContext(v8::Local<v8::Context> calling, v8::Loca l<v8::Context> target) override;
60 int ensureDefaultContextInGroup(int contextGroupId) override; 60 int ensureDefaultContextInGroup(int contextGroupId) override;
61 61
62 v8::MaybeLocal<v8::Value> memoryInfo(v8::Isolate*, v8::Local<v8::Context>) o verride; 62 v8::MaybeLocal<v8::Value> memoryInfo(v8::Isolate*, v8::Local<v8::Context>) o verride;
63 protected: 63 protected:
64 void reportMessageToConsole(v8::Local<v8::Context>, ConsoleMessage*); 64 void reportMessageToConsole(v8::Local<v8::Context>, ConsoleMessage*);
65 65
66 private: 66 private:
67 WorkerThread* m_workerThread; 67 WorkerOrWorkletThread* m_workerThread;
68 }; 68 };
69 69
70 } // namespace blink 70 } // namespace blink
71 71
72 #endif // WorkerThreadDebugger_h 72 #endif // WorkerThreadDebugger_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698