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

Side by Side Diff: src/debug/debug-interface.h

Issue 2502173002: [inspector] removed embbeder debugger script flag (Closed)
Patch Set: Created 4 years, 1 month 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 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_DEBUG_DEBUG_INTERFACE_H_ 5 #ifndef V8_DEBUG_DEBUG_INTERFACE_H_
6 #define V8_DEBUG_DEBUG_INTERFACE_H_ 6 #define V8_DEBUG_DEBUG_INTERFACE_H_
7 7
8 #include "include/v8-debug.h" 8 #include "include/v8-debug.h"
9 #include "include/v8-util.h" 9 #include "include/v8-util.h"
10 #include "include/v8.h" 10 #include "include/v8.h"
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 int LineOffset() const; 174 int LineOffset() const;
175 int ColumnOffset() const; 175 int ColumnOffset() const;
176 std::vector<int> LineEnds() const; 176 std::vector<int> LineEnds() const;
177 MaybeLocal<String> Name() const; 177 MaybeLocal<String> Name() const;
178 MaybeLocal<String> SourceURL() const; 178 MaybeLocal<String> SourceURL() const;
179 MaybeLocal<String> SourceMappingURL() const; 179 MaybeLocal<String> SourceMappingURL() const;
180 MaybeLocal<String> ContextData() const; 180 MaybeLocal<String> ContextData() const;
181 MaybeLocal<String> Source() const; 181 MaybeLocal<String> Source() const;
182 bool GetPossibleBreakpoints(const Location& start, const Location& end, 182 bool GetPossibleBreakpoints(const Location& start, const Location& end,
183 std::vector<Location>* locations) const; 183 std::vector<Location>* locations) const;
184 bool IsInspectorScript() const;
184 185
185 /** 186 /**
186 * script parameter is a wrapper v8::internal::JSObject for 187 * script parameter is a wrapper v8::internal::JSObject for
187 * v8::internal::Script. 188 * v8::internal::Script.
188 * This function gets v8::internal::Script from v8::internal::JSObject and 189 * This function gets v8::internal::Script from v8::internal::JSObject and
189 * wraps it with DebugInterface::Script. 190 * wraps it with DebugInterface::Script.
190 * Returns empty local if not called with a valid wrapper of 191 * Returns empty local if not called with a valid wrapper of
191 * v8::internal::Script. 192 * v8::internal::Script.
192 */ 193 */
193 static MaybeLocal<Script> Wrap(Isolate* isolate, 194 static MaybeLocal<Script> Wrap(Isolate* isolate,
194 v8::Local<v8::Object> script); 195 v8::Local<v8::Object> script);
195 196
196 private: 197 private:
197 int GetSourcePosition(const Location& location) const; 198 int GetSourcePosition(const Location& location) const;
198 }; 199 };
199 200
200 static void GetLoadedScripts(Isolate* isolate, 201 static void GetLoadedScripts(Isolate* isolate,
201 PersistentValueVector<Script>& scripts); 202 PersistentValueVector<Script>& scripts);
202 static MaybeLocal<UnboundScript> CompileInspectorScript(Isolate* isolate, 203 static MaybeLocal<UnboundScript> CompileInspectorScript(Isolate* isolate,
203 Local<String> source); 204 Local<String> source);
204 }; 205 };
205 206
206 } // namespace v8 207 } // namespace v8
207 208
208 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ 209 #endif // V8_DEBUG_DEBUG_INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698