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

Side by Side Diff: Source/bindings/core/v8/ScriptDebugServer.h

Issue 651533003: DevTools: Introduce Debugger::Reason::PromiseRejection pause reason. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: also disaply <exception> in scopes sidebar Created 6 years, 2 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 112
113 protected: 113 protected:
114 explicit ScriptDebugServer(v8::Isolate*); 114 explicit ScriptDebugServer(v8::Isolate*);
115 virtual ~ScriptDebugServer(); 115 virtual ~ScriptDebugServer();
116 116
117 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte xt>) = 0; 117 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte xt>) = 0;
118 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>) = 0; 118 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>) = 0;
119 virtual void quitMessageLoopOnPause() = 0; 119 virtual void quitMessageLoopOnPause() = 0;
120 120
121 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&) ; 121 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&) ;
122 void handleProgramBreak(ScriptState* pausedScriptState, v8::Handle<v8::Objec t> executionState, v8::Handle<v8::Value> exception, v8::Handle<v8::Array> hitBre akpoints); 122 void handleProgramBreak(ScriptState* pausedScriptState, v8::Handle<v8::Objec t> executionState, v8::Handle<v8::Value> exception, v8::Handle<v8::Array> hitBre akpoints, bool isPromiseRejection = false);
123 123
124 static void v8DebugEventCallback(const v8::Debug::EventDetails& eventDetails ); 124 static void v8DebugEventCallback(const v8::Debug::EventDetails& eventDetails );
125 void handleV8DebugEvent(const v8::Debug::EventDetails& eventDetails); 125 void handleV8DebugEvent(const v8::Debug::EventDetails& eventDetails);
126 126
127 void dispatchDidParseSource(ScriptDebugListener*, v8::Handle<v8::Object> sou rceObject, CompileResult); 127 void dispatchDidParseSource(ScriptDebugListener*, v8::Handle<v8::Object> sou rceObject, CompileResult);
128 128
129 void ensureDebuggerScriptCompiled(); 129 void ensureDebuggerScriptCompiled();
130 void discardDebuggerScript(); 130 void discardDebuggerScript();
131 131
132 PauseOnExceptionsState m_pauseOnExceptionsState; 132 PauseOnExceptionsState m_pauseOnExceptionsState;
(...skipping 20 matching lines...) Expand all
153 153
154 void handleV8PromiseEvent(ScriptDebugListener*, ScriptState* pausedScriptSta te, v8::Handle<v8::Object> executionState, v8::Handle<v8::Object> eventData); 154 void handleV8PromiseEvent(ScriptDebugListener*, ScriptState* pausedScriptSta te, v8::Handle<v8::Object> executionState, v8::Handle<v8::Object> eventData);
155 155
156 bool m_runningNestedMessageLoop; 156 bool m_runningNestedMessageLoop;
157 }; 157 };
158 158
159 } // namespace blink 159 } // namespace blink
160 160
161 161
162 #endif // ScriptDebugServer_h 162 #endif // ScriptDebugServer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698