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

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

Issue 1859293002: [DevTools] Move Console to v8_inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 void resetContextGroup(int contextGroupId) override; 113 void resetContextGroup(int contextGroupId) override;
114 PassOwnPtr<V8StackTrace> createStackTrace(v8::Local<v8::StackTrace>, size_t maxStackSize) override; 114 PassOwnPtr<V8StackTrace> createStackTrace(v8::Local<v8::StackTrace>, size_t maxStackSize) override;
115 PassOwnPtr<V8StackTrace> captureStackTrace(size_t maxStackSize) override; 115 PassOwnPtr<V8StackTrace> captureStackTrace(size_t maxStackSize) override;
116 116
117 using ContextByIdMap = protocol::HashMap<int, OwnPtr<InspectedContext>>; 117 using ContextByIdMap = protocol::HashMap<int, OwnPtr<InspectedContext>>;
118 void discardInspectedContext(int contextGroupId, int contextId); 118 void discardInspectedContext(int contextGroupId, int contextId);
119 const ContextByIdMap* contextGroup(int contextGroupId); 119 const ContextByIdMap* contextGroup(int contextGroupId);
120 void disconnect(V8InspectorSessionImpl*); 120 void disconnect(V8InspectorSessionImpl*);
121 V8InspectorSessionImpl* sessionForContextGroup(int contextGroupId); 121 V8InspectorSessionImpl* sessionForContextGroup(int contextGroupId);
122 122
123 v8::MaybeLocal<v8::FunctionTemplate> functionTemplate(const String16& name);
124 void setFunctionTemplate(const String16& name, v8::Local<v8::FunctionTemplat e>);
125
123 private: 126 private:
124 void enable(); 127 void enable();
125 void disable(); 128 void disable();
126 V8DebuggerAgentImpl* findEnabledDebuggerAgent(int contextGroupId); 129 V8DebuggerAgentImpl* findEnabledDebuggerAgent(int contextGroupId);
127 V8DebuggerAgentImpl* findEnabledDebuggerAgent(v8::Local<v8::Context>); 130 V8DebuggerAgentImpl* findEnabledDebuggerAgent(v8::Local<v8::Context>);
128 131
129 void compileDebuggerScript(); 132 void compileDebuggerScript();
130 v8::MaybeLocal<v8::Value> callDebuggerMethod(const char* functionName, int a rgc, v8::Local<v8::Value> argv[]); 133 v8::MaybeLocal<v8::Value> callDebuggerMethod(const char* functionName, int a rgc, v8::Local<v8::Value> argv[]);
131 v8::Local<v8::Context> debuggerContext() const; 134 v8::Local<v8::Context> debuggerContext() const;
132 void clearBreakpoints(); 135 void clearBreakpoints();
(...skipping 18 matching lines...) Expand all
151 SessionMap m_sessions; 154 SessionMap m_sessions;
152 int m_enabledAgentsCount; 155 int m_enabledAgentsCount;
153 bool m_breakpointsActivated; 156 bool m_breakpointsActivated;
154 v8::Global<v8::FunctionTemplate> m_breakProgramCallbackTemplate; 157 v8::Global<v8::FunctionTemplate> m_breakProgramCallbackTemplate;
155 v8::Global<v8::Object> m_debuggerScript; 158 v8::Global<v8::Object> m_debuggerScript;
156 v8::Global<v8::Context> m_debuggerContext; 159 v8::Global<v8::Context> m_debuggerContext;
157 v8::Local<v8::Object> m_executionState; 160 v8::Local<v8::Object> m_executionState;
158 v8::Local<v8::Context> m_pausedContext; 161 v8::Local<v8::Context> m_pausedContext;
159 bool m_runningNestedMessageLoop; 162 bool m_runningNestedMessageLoop;
160 v8::Global<v8::Context> m_regexContext; 163 v8::Global<v8::Context> m_regexContext;
164 using FunctionTemplateMap = protocol::HashMap<String16, OwnPtr<v8::Global<v8 ::FunctionTemplate>>>;
165 FunctionTemplateMap m_templates;
161 }; 166 };
162 167
163 } // namespace blink 168 } // namespace blink
164 169
165 170
166 #endif // V8DebuggerImpl_h 171 #endif // V8DebuggerImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698