Chromium Code Reviews| 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*); |