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

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') | no next file with comments »
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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 226
228 // LocalFrameLifecycleObserver overrides: 227 // LocalFrameLifecycleObserver overrides:
229 void willDetachFrameHost() override; 228 void willDetachFrameHost() override;
230 void contextDestroyed() override; 229 void contextDestroyed() override;
231 230
232 RawPtrWillBeMember<LocalDOMWindow> m_window; 231 RawPtrWillBeMember<LocalDOMWindow> m_window;
233 }; 232 };
234 friend WTF::OwnedPtrDeleter<WindowFrameObserver>; 233 friend WTF::OwnedPtrDeleter<WindowFrameObserver>;
235 234
236 explicit LocalDOMWindow(LocalFrame&); 235 explicit LocalDOMWindow(LocalFrame&);
236 void dispose();
237 237
238 Page* page(); 238 Page* page();
239 239
240 void clearDocument(); 240 void clearDocument();
241 void willDestroyDocumentInFrame(); 241 void willDestroyDocumentInFrame();
242 242
243 void willDetachFrameHost(); 243 void willDetachFrameHost();
244 void frameDestroyed(); 244 void frameDestroyed();
245 245
246 OwnPtrWillBeMember<WindowFrameObserver> m_frameObserver; 246 OwnPtrWillBeMember<WindowFrameObserver> m_frameObserver;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 } 284 }
285 285
286 inline String LocalDOMWindow::defaultStatus() const 286 inline String LocalDOMWindow::defaultStatus() const
287 { 287 {
288 return m_defaultStatus; 288 return m_defaultStatus;
289 } 289 }
290 290
291 } // namespace blink 291 } // namespace blink
292 292
293 #endif // LocalDOMWindow_h 293 #endif // LocalDOMWindow_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/frame/LocalDOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698