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

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/InjectedScriptManager.h

Issue 1811853002: [DevTools] Move evaluateOnCallFrame to native (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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/v8_inspector/InjectedScriptManager.h
diff --git a/third_party/WebKit/Source/platform/v8_inspector/InjectedScriptManager.h b/third_party/WebKit/Source/platform/v8_inspector/InjectedScriptManager.h
index 0d19ef2cea4b76686f3311d8666b2b62b9fe6350..229dfa0527b6460205253d8c95f02b8590aa16fc 100644
--- a/third_party/WebKit/Source/platform/v8_inspector/InjectedScriptManager.h
+++ b/third_party/WebKit/Source/platform/v8_inspector/InjectedScriptManager.h
@@ -63,6 +63,20 @@ public:
void releaseObjectGroup(const String16& objectGroup);
void setCustomObjectFormatterEnabled(bool);
+ class ScopedGlobalObjectExtension {
+ PROTOCOL_DISALLOW_COPY(ScopedGlobalObjectExtension);
+ public:
+ // Pass InjectedScriptManager to affect all contexts which have access.
+ ScopedGlobalObjectExtension(InjectedScript* current, InjectedScriptManager*, v8::MaybeLocal<v8::Object> extension);
+ ~ScopedGlobalObjectExtension();
+
+ private:
+ void setOnGlobal(v8::Local<v8::Object> global, v8::Local<v8::Object> extension);
+
+ v8::Local<v8::Symbol> m_symbol;
+ v8::Local<v8::Context> m_context;
+ Vector<v8::Local<v8::Value>> m_globals;
+ };
private:
explicit InjectedScriptManager(V8DebuggerImpl*);

Powered by Google App Engine
This is Rietveld 408576698