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

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

Issue 1836653002: [DevTools] Wrap call frame with its injected script instead top injected script (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@compile-debugger-script
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/InjectedScript.h
diff --git a/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.h b/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.h
index 37ba6b1408839b7e1fe7daa9b8b006433f218726..76e4ca27958796fe0022fe593a25112312393580 100644
--- a/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.h
+++ b/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.h
@@ -93,6 +93,18 @@ public:
Maybe<bool>* wasThrown,
Maybe<protocol::Runtime::ExceptionDetails>*);
+ class ScopedGlobalObjectExtension {
+ PROTOCOL_DISALLOW_COPY(ScopedGlobalObjectExtension);
+ public:
+ ScopedGlobalObjectExtension(InjectedScript* current, v8::MaybeLocal<v8::Object> extension);
+ ~ScopedGlobalObjectExtension();
+
+ private:
+ v8::Local<v8::Symbol> m_symbol;
+ v8::Local<v8::Context> m_context;
+ v8::MaybeLocal<v8::Object> m_global;
+ };
+
private:
friend InjectedScript* InjectedScriptManager::injectedScriptFor(v8::Local<v8::Context>);
InjectedScript(InjectedScriptManager*, v8::Local<v8::Context>, v8::Local<v8::Object>, PassOwnPtr<InjectedScriptNative>, int contextId);

Powered by Google App Engine
This is Rietveld 408576698