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

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

Issue 307433003: Oilpan: Allocate all EventTarget derived types on the manged heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 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 | « Source/core/fileapi/FileReader.cpp ('k') | Source/core/frame/DOMWindow.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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 enum PageshowEventPersistence { 88 enum PageshowEventPersistence {
89 PageshowEventNotPersisted = 0, 89 PageshowEventNotPersisted = 0,
90 PageshowEventPersisted = 1 90 PageshowEventPersisted = 1
91 }; 91 };
92 92
93 enum SetLocationLocking { LockHistoryBasedOnGestureState, LockHistoryAndBack ForwardList }; 93 enum SetLocationLocking { LockHistoryBasedOnGestureState, LockHistoryAndBack ForwardList };
94 94
95 class DOMWindow FINAL : public RefCountedWillBeRefCountedGarbageCollected<DO MWindow>, public ScriptWrappable, public EventTargetWithInlineData, public DOMWi ndowBase64, public FrameDestructionObserver, public WillBeHeapSupplementable<DOM Window>, public LifecycleContext<DOMWindow> { 95 class DOMWindow FINAL : public RefCountedWillBeRefCountedGarbageCollected<DO MWindow>, public ScriptWrappable, public EventTargetWithInlineData, public DOMWi ndowBase64, public FrameDestructionObserver, public WillBeHeapSupplementable<DOM Window>, public LifecycleContext<DOMWindow> {
96 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DOMWindow); 96 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DOMWindow);
97 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollect ed<DOMWindow>); 97 REFCOUNTED_EVENT_TARGET(DOMWindow);
98 public: 98 public:
99 static PassRefPtrWillBeRawPtr<Document> createDocument(const String& mim eType, const DocumentInit&, bool forceXHTML); 99 static PassRefPtrWillBeRawPtr<Document> createDocument(const String& mim eType, const DocumentInit&, bool forceXHTML);
100 static PassRefPtrWillBeRawPtr<DOMWindow> create(LocalFrame& frame) 100 static PassRefPtrWillBeRawPtr<DOMWindow> create(LocalFrame& frame)
101 { 101 {
102 return adoptRefWillBeRefCountedGarbageCollected(new DOMWindow(frame) ); 102 return adoptRefWillBeRefCountedGarbageCollected(new DOMWindow(frame) );
103 } 103 }
104 virtual ~DOMWindow(); 104 virtual ~DOMWindow();
105 105
106 PassRefPtrWillBeRawPtr<Document> installNewDocument(const String& mimeTy pe, const DocumentInit&, bool forceXHTML = false); 106 PassRefPtrWillBeRawPtr<Document> installNewDocument(const String& mimeTy pe, const DocumentInit&, bool forceXHTML = false);
107 107
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 void enqueuePageshowEvent(PageshowEventPersistence); 319 void enqueuePageshowEvent(PageshowEventPersistence);
320 void enqueueHashchangeEvent(const String& oldURL, const String& newURL); 320 void enqueueHashchangeEvent(const String& oldURL, const String& newURL);
321 void enqueuePopstateEvent(PassRefPtr<SerializedScriptValue>); 321 void enqueuePopstateEvent(PassRefPtr<SerializedScriptValue>);
322 void dispatchWindowLoadEvent(); 322 void dispatchWindowLoadEvent();
323 void documentWasClosed(); 323 void documentWasClosed();
324 void statePopped(PassRefPtr<SerializedScriptValue>); 324 void statePopped(PassRefPtr<SerializedScriptValue>);
325 325
326 // FIXME: This shouldn't be public once DOMWindow becomes ExecutionConte xt. 326 // FIXME: This shouldn't be public once DOMWindow becomes ExecutionConte xt.
327 void clearEventQueue(); 327 void clearEventQueue();
328 328
329 void trace(Visitor*); 329 virtual void trace(Visitor*) OVERRIDE;
330 330
331 protected: 331 protected:
332 DOMWindowLifecycleNotifier& lifecycleNotifier(); 332 DOMWindowLifecycleNotifier& lifecycleNotifier();
333 333
334 private: 334 private:
335 explicit DOMWindow(LocalFrame&); 335 explicit DOMWindow(LocalFrame&);
336 336
337 Page* page(); 337 Page* page();
338 338
339 virtual void frameDestroyed() OVERRIDE; 339 virtual void frameDestroyed() OVERRIDE;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 } 398 }
399 399
400 inline String DOMWindow::defaultStatus() const 400 inline String DOMWindow::defaultStatus() const
401 { 401 {
402 return m_defaultStatus; 402 return m_defaultStatus;
403 } 403 }
404 404
405 } // namespace WebCore 405 } // namespace WebCore
406 406
407 #endif // DOMWindow_h 407 #endif // DOMWindow_h
OLDNEW
« no previous file with comments | « Source/core/fileapi/FileReader.cpp ('k') | Source/core/frame/DOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698