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

Side by Side Diff: Source/core/inspector/V8Debugger.h

Issue 1217773007: [DevTools] Replace reportCompiledScripts with explicit [get]compiledScripts. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: getCompiledScripts Created 5 years, 5 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
« no previous file with comments | « Source/core/inspector/ScriptDebugListener.h ('k') | Source/core/inspector/V8Debugger.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 DECLARE_VIRTUAL_TRACE(); 71 DECLARE_VIRTUAL_TRACE();
72 72
73 void enable(); 73 void enable();
74 void disable(); 74 void disable();
75 bool enabled() const; 75 bool enabled() const;
76 76
77 static void setContextDebugData(v8::Local<v8::Context>, const String& contex tDebugData); 77 static void setContextDebugData(v8::Local<v8::Context>, const String& contex tDebugData);
78 // Each script inherits debug data from v8::Context where it has been compil ed. 78 // Each script inherits debug data from v8::Context where it has been compil ed.
79 // Only scripts whose debug data contains |contextDebugDataSubstring| substr ing will be reported. 79 // Only scripts whose debug data contains |contextDebugDataSubstring| substr ing will be reported.
80 // Passing empty string will result in reporting all scripts. 80 // Passing empty string will result in reporting all scripts.
81 void reportCompiledScripts(const String& contextDebugDataSubstring, ScriptDe bugListener*); 81 void getCompiledScripts(const String& contextDebugDataSubstring, Vector<Scri ptDebugListener::ParsedScript>&);
82 82
83 String setBreakpoint(const String& sourceID, const ScriptBreakpoint&, int* a ctualLineNumber, int* actualColumnNumber, bool interstatementLocation); 83 String setBreakpoint(const String& sourceID, const ScriptBreakpoint&, int* a ctualLineNumber, int* actualColumnNumber, bool interstatementLocation);
84 void removeBreakpoint(const String& breakpointId); 84 void removeBreakpoint(const String& breakpointId);
85 void setBreakpointsActivated(bool); 85 void setBreakpointsActivated(bool);
86 86
87 enum PauseOnExceptionsState { 87 enum PauseOnExceptionsState {
88 DontPauseOnExceptions, 88 DontPauseOnExceptions,
89 PauseOnAllExceptions, 89 PauseOnAllExceptions,
90 PauseOnUncaughtExceptions 90 PauseOnUncaughtExceptions
91 }; 91 };
(...skipping 29 matching lines...) Expand all
121 121
122 private: 122 private:
123 V8Debugger(v8::Isolate*, Client*); 123 V8Debugger(v8::Isolate*, Client*);
124 124
125 void compileDebuggerScript(); 125 void compileDebuggerScript();
126 v8::MaybeLocal<v8::Value> callDebuggerMethod(const char* functionName, int a rgc, v8::Local<v8::Value> argv[]); 126 v8::MaybeLocal<v8::Value> callDebuggerMethod(const char* functionName, int a rgc, v8::Local<v8::Value> argv[]);
127 v8::Local<v8::Object> debuggerScriptLocal() const; 127 v8::Local<v8::Object> debuggerScriptLocal() const;
128 v8::Local<v8::Context> debuggerContext() const; 128 v8::Local<v8::Context> debuggerContext() const;
129 void clearBreakpoints(); 129 void clearBreakpoints();
130 130
131 void dispatchDidParseSource(ScriptDebugListener*, v8::Local<v8::Object> sour ceObject, CompileResult); 131 ScriptDebugListener::ParsedScript createParsedScript(v8::Local<v8::Object> s ourceObject, CompileResult);
132 132
133 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&) ; 133 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&) ;
134 void handleProgramBreak(ScriptState* pausedScriptState, v8::Local<v8::Object > executionState, v8::Local<v8::Value> exception, v8::Local<v8::Array> hitBreakp oints, bool isPromiseRejection = false); 134 void handleProgramBreak(ScriptState* pausedScriptState, v8::Local<v8::Object > executionState, v8::Local<v8::Value> exception, v8::Local<v8::Array> hitBreakp oints, bool isPromiseRejection = false);
135 static void v8DebugEventCallback(const v8::Debug::EventDetails&); 135 static void v8DebugEventCallback(const v8::Debug::EventDetails&);
136 v8::Local<v8::Value> callInternalGetterFunction(v8::Local<v8::Object>, const char* functionName); 136 v8::Local<v8::Value> callInternalGetterFunction(v8::Local<v8::Object>, const char* functionName);
137 void handleV8DebugEvent(const v8::Debug::EventDetails&); 137 void handleV8DebugEvent(const v8::Debug::EventDetails&);
138 138
139 v8::Local<v8::String> v8InternalizedString(const char*) const; 139 v8::Local<v8::String> v8InternalizedString(const char*) const;
140 140
141 enum ScopeInfoDetails { 141 enum ScopeInfoDetails {
(...skipping 15 matching lines...) Expand all
157 v8::UniquePersistent<v8::FunctionTemplate> m_callFrameWrapperTemplate; 157 v8::UniquePersistent<v8::FunctionTemplate> m_callFrameWrapperTemplate;
158 v8::Local<v8::Object> m_executionState; 158 v8::Local<v8::Object> m_executionState;
159 RefPtr<ScriptState> m_pausedScriptState; 159 RefPtr<ScriptState> m_pausedScriptState;
160 bool m_runningNestedMessageLoop; 160 bool m_runningNestedMessageLoop;
161 }; 161 };
162 162
163 } // namespace blink 163 } // namespace blink
164 164
165 165
166 #endif // V8Debugger_h 166 #endif // V8Debugger_h
OLDNEW
« no previous file with comments | « Source/core/inspector/ScriptDebugListener.h ('k') | Source/core/inspector/V8Debugger.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698