OLD | NEW |
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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 // global). | 217 // global). |
218 kGlobalObjectIsDetached, | 218 kGlobalObjectIsDetached, |
219 // The context's frame is detached from the DOM. | 219 // The context's frame is detached from the DOM. |
220 kFrameIsDetached, | 220 kFrameIsDetached, |
221 }; | 221 }; |
222 | 222 |
223 WindowProxy(v8::Isolate*, Frame&, RefPtr<DOMWrapperWorld>); | 223 WindowProxy(v8::Isolate*, Frame&, RefPtr<DOMWrapperWorld>); |
224 | 224 |
225 virtual void Initialize() = 0; | 225 virtual void Initialize() = 0; |
226 | 226 |
227 enum GlobalDetachmentBehavior { kDoNotDetachGlobal, kDetachGlobal }; | 227 virtual void DisposeContext(Lifecycle next_status) = 0; |
228 virtual void DisposeContext(GlobalDetachmentBehavior) = 0; | |
229 | 228 |
230 WARN_UNUSED_RESULT v8::Local<v8::Object> AssociateWithWrapper( | 229 WARN_UNUSED_RESULT v8::Local<v8::Object> AssociateWithWrapper( |
231 DOMWindow*, | 230 DOMWindow*, |
232 const WrapperTypeInfo*, | 231 const WrapperTypeInfo*, |
233 v8::Local<v8::Object> wrapper); | 232 v8::Local<v8::Object> wrapper); |
234 | 233 |
235 v8::Isolate* GetIsolate() const { return isolate_; } | 234 v8::Isolate* GetIsolate() const { return isolate_; } |
236 Frame* GetFrame() const { return frame_.Get(); } | 235 Frame* GetFrame() const { return frame_.Get(); } |
237 | 236 |
238 #if DCHECK_IS_ON() | 237 #if DCHECK_IS_ON() |
(...skipping 11 matching lines...) Expand all Loading... |
250 protected: | 249 protected: |
251 // TODO(dcheng): Consider making these private and using getters. | 250 // TODO(dcheng): Consider making these private and using getters. |
252 const RefPtr<DOMWrapperWorld> world_; | 251 const RefPtr<DOMWrapperWorld> world_; |
253 ScopedPersistent<v8::Object> global_proxy_; | 252 ScopedPersistent<v8::Object> global_proxy_; |
254 Lifecycle lifecycle_; | 253 Lifecycle lifecycle_; |
255 }; | 254 }; |
256 | 255 |
257 } // namespace blink | 256 } // namespace blink |
258 | 257 |
259 #endif // WindowProxy_h | 258 #endif // WindowProxy_h |
OLD | NEW |