| 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*);
|
|
|
|
|