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

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

Issue 1124083003: Revert of DevTools: respond with error when Debugger command is sent to disabled debugger agent (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 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*);
109 108
110 void pauseOnNativeEventIfNeeded(PassRefPtr<JSONObject> eventData, bool synch ronous); 109 void pauseOnNativeEventIfNeeded(PassRefPtr<JSONObject> eventData, bool synch ronous);
111 PassRefPtr<JSONObject> preparePauseOnNativeEventData(const String& eventName , const String* targetName); 110 PassRefPtr<JSONObject> preparePauseOnNativeEventData(const String& eventName , const String* targetName);
112 111
113 // InspectorDOMAgent::Listener implementation. 112 // InspectorDOMAgent::Listener implementation.
114 void domAgentWasEnabled() override; 113 void domAgentWasEnabled() override;
115 void domAgentWasDisabled() override; 114 void domAgentWasDisabled() override;
116 115
117 // InspectorDebuggerAgent::Listener implementation. 116 // InspectorDebuggerAgent::Listener implementation.
118 void debuggerWasEnabled() override; 117 void debuggerWasEnabled() override;
(...skipping 16 matching lines...) Expand all
135 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; 134 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager;
136 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; 135 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent;
137 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent; 136 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent;
138 WillBeHeapHashMap<RawPtrWillBeMember<Node>, uint32_t> m_domBreakpoints; 137 WillBeHeapHashMap<RawPtrWillBeMember<Node>, uint32_t> m_domBreakpoints;
139 }; 138 };
140 139
141 } // namespace blink 140 } // namespace blink
142 141
143 142
144 #endif // !defined(InspectorDOMDebuggerAgent_h) 143 #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