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

Side by Side Diff: Source/core/inspector/InspectorDOMDebuggerAgent.h

Issue 1129473003: DevTools: respond with error when Debugger command is sent to disabled debugger agent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased 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 unified diff | Download patch | Annotate | Revision Log
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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 void didFireWebGLError(const String& errorName); 98 void didFireWebGLError(const String& errorName);
99 void didFireWebGLWarning(); 99 void didFireWebGLWarning();
100 void didFireWebGLErrorOrWarning(const String& message); 100 void didFireWebGLErrorOrWarning(const String& message);
101 void willCloseWindow(); 101 void willCloseWindow();
102 102
103 void disable(ErrorString*) override; 103 void disable(ErrorString*) override;
104 void discardAgent() override; 104 void discardAgent() override;
105 105
106 private: 106 private:
107 InspectorDOMDebuggerAgent(InjectedScriptManager*, InspectorDOMAgent*, Inspec torDebuggerAgent*); 107 InspectorDOMDebuggerAgent(InjectedScriptManager*, InspectorDOMAgent*, Inspec torDebuggerAgent*);
108 bool checkEnabled(ErrorString*);
108 109
109 void pauseOnNativeEventIfNeeded(PassRefPtr<JSONObject> eventData, bool synch ronous); 110 void pauseOnNativeEventIfNeeded(PassRefPtr<JSONObject> eventData, bool synch ronous);
110 PassRefPtr<JSONObject> preparePauseOnNativeEventData(const String& eventName , const String* targetName); 111 PassRefPtr<JSONObject> preparePauseOnNativeEventData(const String& eventName , const String* targetName);
111 112
112 // InspectorDOMAgent::Listener implementation. 113 // InspectorDOMAgent::Listener implementation.
113 void domAgentWasEnabled() override; 114 void domAgentWasEnabled() override;
114 void domAgentWasDisabled() override; 115 void domAgentWasDisabled() override;
115 116
116 // InspectorDebuggerAgent::Listener implementation. 117 // InspectorDebuggerAgent::Listener implementation.
117 void debuggerWasEnabled() override; 118 void debuggerWasEnabled() override;
(...skipping 16 matching lines...) Expand all
134 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; 135 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager;
135 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; 136 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent;
136 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent; 137 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent;
137 WillBeHeapHashMap<RawPtrWillBeMember<Node>, uint32_t> m_domBreakpoints; 138 WillBeHeapHashMap<RawPtrWillBeMember<Node>, uint32_t> m_domBreakpoints;
138 }; 139 };
139 140
140 } // namespace blink 141 } // namespace blink
141 142
142 143
143 #endif // !defined(InspectorDOMDebuggerAgent_h) 144 #endif // !defined(InspectorDOMDebuggerAgent_h)
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/ScriptDebugServer.cpp ('k') | Source/core/inspector/InspectorDOMDebuggerAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698