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

Side by Side Diff: Source/core/frame/LocalDOMWindow.h

Issue 1200333006: Oilpan: Support nested pre-finalizers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/frame/LocalDOMWindow.cpp » ('j') | Source/platform/heap/HeapTest.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LocalDOMWindow); 68 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LocalDOMWindow);
69 WILL_BE_USING_PRE_FINALIZER(LocalDOMWindow, dispose); 69 WILL_BE_USING_PRE_FINALIZER(LocalDOMWindow, dispose);
70 public: 70 public:
71 static PassRefPtrWillBeRawPtr<Document> createDocument(const String& mimeTyp e, const DocumentInit&, bool forceXHTML); 71 static PassRefPtrWillBeRawPtr<Document> createDocument(const String& mimeTyp e, const DocumentInit&, bool forceXHTML);
72 static PassRefPtrWillBeRawPtr<LocalDOMWindow> create(LocalFrame& frame) 72 static PassRefPtrWillBeRawPtr<LocalDOMWindow> create(LocalFrame& frame)
73 { 73 {
74 return adoptRefWillBeNoop(new LocalDOMWindow(frame)); 74 return adoptRefWillBeNoop(new LocalDOMWindow(frame));
75 } 75 }
76 76
77 virtual ~LocalDOMWindow(); 77 virtual ~LocalDOMWindow();
78 void dispose();
79 78
80 DECLARE_VIRTUAL_TRACE(); 79 DECLARE_VIRTUAL_TRACE();
81 80
82 PassRefPtrWillBeRawPtr<Document> installNewDocument(const String& mimeType, const DocumentInit&, bool forceXHTML = false); 81 PassRefPtrWillBeRawPtr<Document> installNewDocument(const String& mimeType, const DocumentInit&, bool forceXHTML = false);
83 82
84 // EventTarget overrides: 83 // EventTarget overrides:
85 virtual ExecutionContext* executionContext() const override; 84 virtual ExecutionContext* executionContext() const override;
86 virtual LocalDOMWindow* toDOMWindow() override; 85 virtual LocalDOMWindow* toDOMWindow() override;
87 86
88 // DOMWindow overrides: 87 // DOMWindow overrides:
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 227
229 // LocalFrameLifecycleObserver overrides: 228 // LocalFrameLifecycleObserver overrides:
230 void willDetachFrameHost() override; 229 void willDetachFrameHost() override;
231 void contextDestroyed() override; 230 void contextDestroyed() override;
232 231
233 RawPtrWillBeMember<LocalDOMWindow> m_window; 232 RawPtrWillBeMember<LocalDOMWindow> m_window;
234 }; 233 };
235 friend WTF::OwnedPtrDeleter<WindowFrameObserver>; 234 friend WTF::OwnedPtrDeleter<WindowFrameObserver>;
236 235
237 explicit LocalDOMWindow(LocalFrame&); 236 explicit LocalDOMWindow(LocalFrame&);
237 void dispose();
238 238
239 Page* page(); 239 Page* page();
240 240
241 void clearDocument(); 241 void clearDocument();
242 void willDestroyDocumentInFrame(); 242 void willDestroyDocumentInFrame();
243 243
244 void willDetachFrameHost(); 244 void willDetachFrameHost();
245 void frameDestroyed(); 245 void frameDestroyed();
246 246
247 OwnPtrWillBeMember<WindowFrameObserver> m_frameObserver; 247 OwnPtrWillBeMember<WindowFrameObserver> m_frameObserver;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 } 285 }
286 286
287 inline String LocalDOMWindow::defaultStatus() const 287 inline String LocalDOMWindow::defaultStatus() const
288 { 288 {
289 return m_defaultStatus; 289 return m_defaultStatus;
290 } 290 }
291 291
292 } // namespace blink 292 } // namespace blink
293 293
294 #endif // LocalDOMWindow_h 294 #endif // LocalDOMWindow_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/frame/LocalDOMWindow.cpp » ('j') | Source/platform/heap/HeapTest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698