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

Unified 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: rebased 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.h
diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.h b/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.h
index 1d2059e0fffbe1a8ac44951e9123e4a3c7ab5c79..11e00b965b7de4d4a22490ec9b2b447a7ba87a73 100644
--- a/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.h
+++ b/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.h
@@ -119,6 +119,9 @@ public:
void disconnect(V8InspectorSessionImpl*);
V8InspectorSessionImpl* sessionForContextGroup(int contextGroupId);
+ v8::MaybeLocal<v8::FunctionTemplate> functionTemplate(const String16& name);
+ void setFunctionTemplate(const String16& name, v8::Local<v8::FunctionTemplate>);
+
private:
void enable();
void disable();
@@ -157,6 +160,8 @@ private:
v8::Local<v8::Context> m_pausedContext;
bool m_runningNestedMessageLoop;
v8::Global<v8::Context> m_regexContext;
+ using FunctionTemplateMap = protocol::HashMap<String16, OwnPtr<v8::Global<v8::FunctionTemplate>>>;
+ FunctionTemplateMap m_templates;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698