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

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

Issue 2105853002: Merge to 2743 "[DevTools] Explicitly reset context group when clearing ScriptController." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 5 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 explicit MainThreadDebugger(v8::Isolate*); 58 explicit MainThreadDebugger(v8::Isolate*);
59 ~MainThreadDebugger() override; 59 ~MainThreadDebugger() override;
60 60
61 static MainThreadDebugger* instance(); 61 static MainThreadDebugger* instance();
62 static void interruptMainThreadAndRun(std::unique_ptr<InspectorTaskRunner::T ask>); 62 static void interruptMainThreadAndRun(std::unique_ptr<InspectorTaskRunner::T ask>);
63 63
64 InspectorTaskRunner* taskRunner() const { return m_taskRunner.get(); } 64 InspectorTaskRunner* taskRunner() const { return m_taskRunner.get(); }
65 bool isWorker() override { return false; } 65 bool isWorker() override { return false; }
66 void setClientMessageLoop(PassOwnPtr<ClientMessageLoop>); 66 void setClientMessageLoop(PassOwnPtr<ClientMessageLoop>);
67 int contextGroupId(LocalFrame*); 67 int contextGroupId(LocalFrame*);
68 void didClearContextsForFrame(LocalFrame*);
68 void contextCreated(ScriptState*, LocalFrame*, SecurityOrigin*); 69 void contextCreated(ScriptState*, LocalFrame*, SecurityOrigin*);
69 void contextWillBeDestroyed(ScriptState*); 70 void contextWillBeDestroyed(ScriptState*);
70 71
71 v8::MaybeLocal<v8::Value> memoryInfo(v8::Isolate*, v8::Local<v8::Context>) o verride; 72 v8::MaybeLocal<v8::Value> memoryInfo(v8::Isolate*, v8::Local<v8::Context>) o verride;
72 protected: 73 protected:
73 void reportMessageToConsole(v8::Local<v8::Context>, ConsoleMessage*) overrid e; 74 void reportMessageToConsole(v8::Local<v8::Context>, ConsoleMessage*) overrid e;
74 75
75 private: 76 private:
76 // V8DebuggerClient implementation. 77 // V8DebuggerClient implementation.
77 void runMessageLoopOnPause(int contextGroupId) override; 78 void runMessageLoopOnPause(int contextGroupId) override;
78 void quitMessageLoopOnPause() override; 79 void quitMessageLoopOnPause() override;
79 void muteWarningsAndDeprecations() override; 80 void muteWarningsAndDeprecations() override;
80 void unmuteWarningsAndDeprecations() override; 81 void unmuteWarningsAndDeprecations() override;
81 void muteConsole() override; 82 void muteConsole() override;
82 void unmuteConsole() override; 83 void unmuteConsole() override;
83 bool callingContextCanAccessContext(v8::Local<v8::Context> calling, v8::Loca l<v8::Context> target) override; 84 bool callingContextCanAccessContext(v8::Local<v8::Context> calling, v8::Loca l<v8::Context> target) override;
84 int ensureDefaultContextInGroup(int contextGroupId) override; 85 int ensureDefaultContextInGroup(int contextGroupId) override;
85 86
86 OwnPtr<ClientMessageLoop> m_clientMessageLoop; 87 OwnPtr<ClientMessageLoop> m_clientMessageLoop;
87 OwnPtr<InspectorTaskRunner> m_taskRunner; 88 OwnPtr<InspectorTaskRunner> m_taskRunner;
88 89
89 static MainThreadDebugger* s_instance; 90 static MainThreadDebugger* s_instance;
90 }; 91 };
91 92
92 } // namespace blink 93 } // namespace blink
93 94
94 95
95 #endif // MainThreadDebugger_h 96 #endif // MainThreadDebugger_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698