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

Unified Diff: Source/core/inspector/PageDebuggerAgent.h

Issue 1132793002: DevTools: do not enable debugger for pages where script execution is prohibited (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« no previous file with comments | « Source/core/inspector/InspectorDebuggerAgent.h ('k') | Source/core/inspector/PageDebuggerAgent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/PageDebuggerAgent.h
diff --git a/Source/core/inspector/PageDebuggerAgent.h b/Source/core/inspector/PageDebuggerAgent.h
index 97db6f95e116958870901aab01f02059f4661d8d..4f4a39a4b07777fccc9f5a22caf9b7ee1488d4ef 100644
--- a/Source/core/inspector/PageDebuggerAgent.h
+++ b/Source/core/inspector/PageDebuggerAgent.h
@@ -52,6 +52,7 @@ public:
~PageDebuggerAgent() override;
DECLARE_VIRTUAL_TRACE();
+ void enable(ErrorString*) final;
void didStartProvisionalLoad(LocalFrame*);
void didClearDocumentOfWindowObject(LocalFrame*);
void didCommitLoadForLocalFrame(LocalFrame*) override;
@@ -72,6 +73,7 @@ private:
void overlaySteppedOver() override;
InjectedScript injectedScriptForEval(ErrorString*, const int* executionContextId) override;
+ bool canExecuteScripts() const;
PageDebuggerAgent(PageScriptDebugServer*, InspectorPageAgent*, InjectedScriptManager*, InspectorOverlay*, int debuggerId);
RawPtrWillBeMember<PageScriptDebugServer> m_pageScriptDebugServer;
« no previous file with comments | « Source/core/inspector/InspectorDebuggerAgent.h ('k') | Source/core/inspector/PageDebuggerAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698