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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/WindowProxy.h

Issue 2737553007: Duplicate WindowProxy::disposeContext() into subclasses. (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 ContextUninitialized, 155 ContextUninitialized,
156 ContextInitialized, 156 ContextInitialized,
157 ContextDetached, 157 ContextDetached,
158 }; 158 };
159 159
160 WindowProxy(v8::Isolate*, Frame&, RefPtr<DOMWrapperWorld>); 160 WindowProxy(v8::Isolate*, Frame&, RefPtr<DOMWrapperWorld>);
161 161
162 virtual void initialize() = 0; 162 virtual void initialize() = 0;
163 163
164 enum GlobalDetachmentBehavior { DoNotDetachGlobal, DetachGlobal }; 164 enum GlobalDetachmentBehavior { DoNotDetachGlobal, DetachGlobal };
165 virtual void disposeContext(GlobalDetachmentBehavior); 165 virtual void disposeContext(GlobalDetachmentBehavior) = 0;
166 166
167 v8::Isolate* isolate() const { return m_isolate; } 167 v8::Isolate* isolate() const { return m_isolate; }
168 Frame* frame() const { return m_frame.get(); } 168 Frame* frame() const { return m_frame.get(); }
169 ScriptState* getScriptState() const { return m_scriptState.get(); } 169 ScriptState* getScriptState() const { return m_scriptState.get(); }
170 170
171 private: 171 private:
172 v8::Isolate* const m_isolate; 172 v8::Isolate* const m_isolate;
173 const Member<Frame> m_frame; 173 const Member<Frame> m_frame;
174 174
175 protected: 175 protected:
176 // TODO(dcheng): Move this to LocalWindowProxy once RemoteWindowProxy uses 176 // TODO(dcheng): Move this to LocalWindowProxy once RemoteWindowProxy uses
177 // remote contexts. 177 // remote contexts.
178 RefPtr<ScriptState> m_scriptState; 178 RefPtr<ScriptState> m_scriptState;
179 // TODO(dcheng): Consider making these private and using getters. 179 // TODO(dcheng): Consider making these private and using getters.
180 const RefPtr<DOMWrapperWorld> m_world; 180 const RefPtr<DOMWrapperWorld> m_world;
181 ScopedPersistent<v8::Object> m_globalProxy; 181 ScopedPersistent<v8::Object> m_globalProxy;
182 Lifecycle m_lifecycle; 182 Lifecycle m_lifecycle;
183 }; 183 };
184 184
185 } // namespace blink 185 } // namespace blink
186 186
187 #endif // WindowProxy_h 187 #endif // WindowProxy_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698