| Index: third_party/WebKit/Source/bindings/core/v8/WindowProxy.h
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/WindowProxy.h b/third_party/WebKit/Source/bindings/core/v8/WindowProxy.h
|
| index 393faea76c3a4d5293f46bec88833fe44eb5373a..21c25c5a2cde99824e0a56f02b08018373e69091 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/WindowProxy.h
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/WindowProxy.h
|
| @@ -168,9 +168,17 @@ class WindowProxy : public GarbageCollectedFinalized<WindowProxy> {
|
| Frame* frame() const { return m_frame.get(); }
|
| ScriptState* getScriptState() const { return m_scriptState.get(); }
|
|
|
| +#if DCHECK_IS_ON()
|
| + void didAttachGlobalProxy() { m_isGlobalProxyAttached = true; }
|
| + void didDetachGlobalProxy() { m_isGlobalProxyAttached = false; }
|
| +#endif
|
| +
|
| private:
|
| v8::Isolate* const m_isolate;
|
| const Member<Frame> m_frame;
|
| +#if DCHECK_IS_ON()
|
| + bool m_isGlobalProxyAttached = false;
|
| +#endif
|
|
|
| protected:
|
| // TODO(dcheng): Move this to LocalWindowProxy once RemoteWindowProxy uses
|
|
|