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

Side by Side Diff: Source/bindings/core/v8/ScriptDebugServer.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) 2010, Google Inc. All rights reserved. 2 * Copyright (c) 2010, 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 protected: 126 protected:
127 ScriptDebugServer(v8::Isolate*, PassOwnPtr<Client>); 127 ScriptDebugServer(v8::Isolate*, PassOwnPtr<Client>);
128 128
129 virtual void clearCompiledScripts(); 129 virtual void clearCompiledScripts();
130 130
131 virtual ScriptDebugListener* getDebugListenerForContext(v8::Local<v8::Contex t>) = 0; 131 virtual ScriptDebugListener* getDebugListenerForContext(v8::Local<v8::Contex t>) = 0;
132 virtual void runMessageLoopOnPause(v8::Local<v8::Context>) = 0; 132 virtual void runMessageLoopOnPause(v8::Local<v8::Context>) = 0;
133 virtual void quitMessageLoopOnPause() = 0; 133 virtual void quitMessageLoopOnPause() = 0;
134 134
135 private: 135 private:
136 void ensureDebuggerScriptCompiled(); 136 void compileDebuggerScript();
137 v8::MaybeLocal<v8::Value> callDebuggerMethod(const char* functionName, int a rgc, v8::Local<v8::Value> argv[]); 137 v8::MaybeLocal<v8::Value> callDebuggerMethod(const char* functionName, int a rgc, v8::Local<v8::Value> argv[]);
138 v8::Local<v8::Object> debuggerScriptLocal() const; 138 v8::Local<v8::Object> debuggerScriptLocal() const;
139 void clearBreakpoints(); 139 void clearBreakpoints();
140 140
141 void dispatchDidParseSource(ScriptDebugListener*, v8::Local<v8::Object> sour ceObject, CompileResult); 141 void dispatchDidParseSource(ScriptDebugListener*, v8::Local<v8::Object> sour ceObject, CompileResult);
142 142
143 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&) ; 143 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&) ;
144 void handleProgramBreak(ScriptState* pausedScriptState, v8::Local<v8::Object > executionState, v8::Local<v8::Value> exception, v8::Local<v8::Array> hitBreakp oints, bool isPromiseRejection = false); 144 void handleProgramBreak(ScriptState* pausedScriptState, v8::Local<v8::Object > executionState, v8::Local<v8::Value> exception, v8::Local<v8::Array> hitBreakp oints, bool isPromiseRejection = false);
145 static void v8InterruptCallback(v8::Isolate*, void*); 145 static void v8InterruptCallback(v8::Isolate*, void*);
146 static void v8DebugEventCallback(const v8::Debug::EventDetails&); 146 static void v8DebugEventCallback(const v8::Debug::EventDetails&);
(...skipping 22 matching lines...) Expand all
169 RefPtr<ScriptState> m_pausedScriptState; 169 RefPtr<ScriptState> m_pausedScriptState;
170 bool m_runningNestedMessageLoop; 170 bool m_runningNestedMessageLoop;
171 class ThreadSafeTaskQueue; 171 class ThreadSafeTaskQueue;
172 OwnPtr<ThreadSafeTaskQueue> m_taskQueue; 172 OwnPtr<ThreadSafeTaskQueue> m_taskQueue;
173 }; 173 };
174 174
175 } // namespace blink 175 } // namespace blink
176 176
177 177
178 #endif // ScriptDebugServer_h 178 #endif // ScriptDebugServer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698