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

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..5bf8dc431c6ef8083e00943fbeb4f8d557e27e9c 100644
--- a/third_party/WebKit/Source/platform/v8_inspector/InjectedScriptManager.h
+++ b/third_party/WebKit/Source/platform/v8_inspector/InjectedScriptManager.h
@@ -63,6 +63,22 @@ public:
void releaseObjectGroup(const String16& objectGroup);
void setCustomObjectFormatterEnabled(bool);
+ class InjectScopeExtensionByName {
dgozman 2016/03/17 19:16:12 ScopedGlobalObjectExtension
kozy 2016/03/17 20:48:56 Done.
+ PROTOCOL_DISALLOW_COPY(InjectScopeExtensionByName);
+ public:
+ InjectScopeExtensionByName(ErrorString*, InjectedScript*, bool injectToAll, const String16& name);
dgozman 2016/03/17 19:16:12 // Pass nullptr to affect all contexts which have
kozy 2016/03/17 20:48:56 Done.
+ ~InjectScopeExtensionByName();
+
+ bool hasError() const { return m_hasError; }
+ private:
+ void setOnGlobal(v8::Local<v8::Object> global, v8::Local<v8::Object> scopeExtension);
dgozman 2016/03/17 19:16:12 scopeExtension -> extension
kozy 2016/03/17 20:48:56 Done.
+
+ v8::Isolate* m_isolate;
+ v8::Local<v8::Symbol> m_symbol;
+ v8::Local<v8::Context> m_context;
+ v8::Local<v8::Array> m_globals;
+ bool m_hasError;
+ };
private:
explicit InjectedScriptManager(V8DebuggerImpl*);

Powered by Google App Engine
This is Rietveld 408576698