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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.h

Issue 1758313002: DevTools: introduce collections shim to be backed by non-wtf in v8_inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // V8Debugger implementation 101 // V8Debugger implementation
102 PassOwnPtr<V8StackTrace> createStackTrace(v8::Local<v8::StackTrace>, size_t maxStackSize) override; 102 PassOwnPtr<V8StackTrace> createStackTrace(v8::Local<v8::StackTrace>, size_t maxStackSize) override;
103 PassOwnPtr<V8StackTrace> captureStackTrace(size_t maxStackSize) override; 103 PassOwnPtr<V8StackTrace> captureStackTrace(size_t maxStackSize) override;
104 104
105 private: 105 private:
106 void enable(); 106 void enable();
107 void disable(); 107 void disable();
108 // Each script inherits debug data from v8::Context where it has been compil ed. 108 // Each script inherits debug data from v8::Context where it has been compil ed.
109 // Only scripts whose debug data matches |contextGroupId| will be reported. 109 // Only scripts whose debug data matches |contextGroupId| will be reported.
110 // Passing 0 will result in reporting all scripts. 110 // Passing 0 will result in reporting all scripts.
111 void getCompiledScripts(int contextGroupId, Vector<V8DebuggerParsedScript>&) ; 111 void getCompiledScripts(int contextGroupId, protocol::Vector<V8DebuggerParse dScript>&);
112 V8DebuggerAgentImpl* getAgentForContext(v8::Local<v8::Context>); 112 V8DebuggerAgentImpl* getAgentForContext(v8::Local<v8::Context>);
113 113
114 void compileDebuggerScript(); 114 void compileDebuggerScript();
115 v8::MaybeLocal<v8::Value> callDebuggerMethod(const char* functionName, int a rgc, v8::Local<v8::Value> argv[]); 115 v8::MaybeLocal<v8::Value> callDebuggerMethod(const char* functionName, int a rgc, v8::Local<v8::Value> argv[]);
116 v8::Local<v8::Context> debuggerContext() const; 116 v8::Local<v8::Context> debuggerContext() const;
117 void clearBreakpoints(); 117 void clearBreakpoints();
118 118
119 V8DebuggerParsedScript createParsedScript(v8::Local<v8::Object> sourceObject , bool success); 119 V8DebuggerParsedScript createParsedScript(v8::Local<v8::Object> sourceObject , bool success);
120 120
121 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&) ; 121 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&) ;
122 void handleProgramBreak(v8::Local<v8::Context> pausedContext, v8::Local<v8:: Object> executionState, v8::Local<v8::Value> exception, v8::Local<v8::Array> hit Breakpoints, bool isPromiseRejection = false); 122 void handleProgramBreak(v8::Local<v8::Context> pausedContext, v8::Local<v8:: Object> executionState, v8::Local<v8::Value> exception, v8::Local<v8::Array> hit Breakpoints, bool isPromiseRejection = false);
123 static void v8DebugEventCallback(const v8::Debug::EventDetails&); 123 static void v8DebugEventCallback(const v8::Debug::EventDetails&);
124 v8::Local<v8::Value> callInternalGetterFunction(v8::Local<v8::Object>, const char* functionName); 124 v8::Local<v8::Value> callInternalGetterFunction(v8::Local<v8::Object>, const char* functionName);
125 void handleV8DebugEvent(const v8::Debug::EventDetails&); 125 void handleV8DebugEvent(const v8::Debug::EventDetails&);
126 126
127 v8::Local<v8::String> v8InternalizedString(const char*) const; 127 v8::Local<v8::String> v8InternalizedString(const char*) const;
128 128
129 PassOwnPtr<JavaScriptCallFrame> wrapCallFrames(); 129 PassOwnPtr<JavaScriptCallFrame> wrapCallFrames();
130 void handleV8AsyncTaskEvent(V8DebuggerAgentImpl*, v8::Local<v8::Context>, v8 ::Local<v8::Object> executionState, v8::Local<v8::Object> eventData); 130 void handleV8AsyncTaskEvent(V8DebuggerAgentImpl*, v8::Local<v8::Context>, v8 ::Local<v8::Object> executionState, v8::Local<v8::Object> eventData);
131 void handleV8PromiseEvent(V8DebuggerAgentImpl*, v8::Local<v8::Context>, v8:: Local<v8::Object> executionState, v8::Local<v8::Object> eventData); 131 void handleV8PromiseEvent(V8DebuggerAgentImpl*, v8::Local<v8::Context>, v8:: Local<v8::Object> executionState, v8::Local<v8::Object> eventData);
132 132
133 v8::Isolate* m_isolate; 133 v8::Isolate* m_isolate;
134 V8DebuggerClient* m_client; 134 V8DebuggerClient* m_client;
135 using AgentsMap = HashMap<int, V8DebuggerAgentImpl*>; 135 using AgentsMap = protocol::HashMap<int, V8DebuggerAgentImpl*>;
136 AgentsMap m_agentsMap; 136 AgentsMap m_agentsMap;
137 bool m_breakpointsActivated; 137 bool m_breakpointsActivated;
138 v8::Global<v8::FunctionTemplate> m_breakProgramCallbackTemplate; 138 v8::Global<v8::FunctionTemplate> m_breakProgramCallbackTemplate;
139 v8::Global<v8::Object> m_debuggerScript; 139 v8::Global<v8::Object> m_debuggerScript;
140 v8::Global<v8::Context> m_debuggerContext; 140 v8::Global<v8::Context> m_debuggerContext;
141 v8::Global<v8::FunctionTemplate> m_callFrameWrapperTemplate; 141 v8::Global<v8::FunctionTemplate> m_callFrameWrapperTemplate;
142 v8::Local<v8::Object> m_executionState; 142 v8::Local<v8::Object> m_executionState;
143 v8::Local<v8::Context> m_pausedContext; 143 v8::Local<v8::Context> m_pausedContext;
144 bool m_runningNestedMessageLoop; 144 bool m_runningNestedMessageLoop;
145 v8::Global<v8::Context> m_regexContext; 145 v8::Global<v8::Context> m_regexContext;
146 }; 146 };
147 147
148 } // namespace blink 148 } // namespace blink
149 149
150 150
151 #endif // V8DebuggerImpl_h 151 #endif // V8DebuggerImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698