OLD | NEW |
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 14 matching lines...) Expand all Loading... |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef ScriptDebugServer_h | 31 #ifndef ScriptDebugServer_h |
32 #define ScriptDebugServer_h | 32 #define ScriptDebugServer_h |
33 | 33 |
34 #include "bindings/core/v8/ScopedPersistent.h" | 34 #include "bindings/core/v8/ScopedPersistent.h" |
35 #include "core/InspectorBackendDispatcher.h" | |
36 #include "core/inspector/ScriptBreakpoint.h" | 35 #include "core/inspector/ScriptBreakpoint.h" |
37 #include "core/inspector/ScriptCallStack.h" | 36 #include "core/inspector/ScriptCallStack.h" |
38 #include "core/inspector/ScriptDebugListener.h" | 37 #include "core/inspector/ScriptDebugListener.h" |
39 #include "wtf/HashMap.h" | 38 #include "wtf/HashMap.h" |
40 #include "wtf/Noncopyable.h" | |
41 #include "wtf/PassOwnPtr.h" | 39 #include "wtf/PassOwnPtr.h" |
42 #include "wtf/text/StringHash.h" | |
43 #include "wtf/text/WTFString.h" | |
44 #include <v8-debug.h> | 40 #include <v8-debug.h> |
45 #include <v8.h> | 41 #include <v8.h> |
46 | 42 |
47 namespace blink { | 43 namespace blink { |
48 | 44 |
49 class ScriptState; | 45 class ScriptState; |
50 class ScriptController; | |
51 class ScriptDebugListener; | 46 class ScriptDebugListener; |
52 class ScriptSourceCode; | 47 class ScriptSourceCode; |
53 class ScriptValue; | 48 class ScriptValue; |
54 class JavaScriptCallFrame; | 49 class JavaScriptCallFrame; |
55 | 50 |
56 class ScriptDebugServer { | 51 class ScriptDebugServer { |
57 WTF_MAKE_NONCOPYABLE(ScriptDebugServer); | 52 WTF_MAKE_NONCOPYABLE(ScriptDebugServer); |
58 public: | 53 public: |
59 String setBreakpoint(const String& sourceID, const ScriptBreakpoint&, int* a
ctualLineNumber, int* actualColumnNumber, bool interstatementLocation); | 54 String setBreakpoint(const String& sourceID, const ScriptBreakpoint&, int* a
ctualLineNumber, int* actualColumnNumber, bool interstatementLocation); |
60 void removeBreakpoint(const String& breakpointId); | 55 void removeBreakpoint(const String& breakpointId); |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 153 |
159 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); |
160 | 155 |
161 bool m_runningNestedMessageLoop; | 156 bool m_runningNestedMessageLoop; |
162 }; | 157 }; |
163 | 158 |
164 } // namespace blink | 159 } // namespace blink |
165 | 160 |
166 | 161 |
167 #endif // ScriptDebugServer_h | 162 #endif // ScriptDebugServer_h |
OLD | NEW |