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

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

Issue 292503006: Oilpan: add [WillBeGarbageCollected] for Node. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased + use transition types in XSLTProcessor Created 6 years, 7 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) 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollect ed<DOMWindow>);
98 public: 98 public:
99 static PassRefPtr<Document> createDocument(const String& mimeType, 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 PassRefPtr<Document> installNewDocument(const String& mimeType, const Do cumentInit&, bool forceXHTML = false); 106 PassRefPtrWillBeRawPtr<Document> installNewDocument(const String& mimeTy pe, const DocumentInit&, bool forceXHTML = false);
107 107
108 virtual const AtomicString& interfaceName() const OVERRIDE; 108 virtual const AtomicString& interfaceName() const OVERRIDE;
109 virtual ExecutionContext* executionContext() const OVERRIDE; 109 virtual ExecutionContext* executionContext() const OVERRIDE;
110 110
111 virtual DOMWindow* toDOMWindow() OVERRIDE; 111 virtual DOMWindow* toDOMWindow() OVERRIDE;
112 112
113 void registerProperty(DOMWindowProperty*); 113 void registerProperty(DOMWindowProperty*);
114 void unregisterProperty(DOMWindowProperty*); 114 void unregisterProperty(DOMWindowProperty*);
115 115
116 void reset(); 116 void reset();
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 336
337 Page* page(); 337 Page* page();
338 338
339 virtual void frameDestroyed() OVERRIDE; 339 virtual void frameDestroyed() OVERRIDE;
340 virtual void willDetachFrameHost() OVERRIDE; 340 virtual void willDetachFrameHost() OVERRIDE;
341 341
342 void clearDocument(); 342 void clearDocument();
343 void resetDOMWindowProperties(); 343 void resetDOMWindowProperties();
344 void willDestroyDocumentInFrame(); 344 void willDestroyDocumentInFrame();
345 345
346 RefPtr<Document> m_document; 346 RefPtrWillBeMember<Document> m_document;
347 347
348 bool m_shouldPrintWhenFinishedLoading; 348 bool m_shouldPrintWhenFinishedLoading;
349 #if ASSERT_ENABLED 349 #if ASSERT_ENABLED
350 bool m_hasBeenReset; 350 bool m_hasBeenReset;
351 #endif 351 #endif
352 352
353 HashSet<DOMWindowProperty*> m_properties; 353 HashSet<DOMWindowProperty*> m_properties;
354 354
355 mutable RefPtrWillBeMember<Screen> m_screen; 355 mutable RefPtrWillBeMember<Screen> m_screen;
356 mutable RefPtrWillBeMember<History> m_history; 356 mutable RefPtrWillBeMember<History> m_history;
(...skipping 29 matching lines...) Expand all
386 } 386 }
387 387
388 inline String DOMWindow::defaultStatus() const 388 inline String DOMWindow::defaultStatus() const
389 { 389 {
390 return m_defaultStatus; 390 return m_defaultStatus;
391 } 391 }
392 392
393 } // namespace WebCore 393 } // namespace WebCore
394 394
395 #endif // DOMWindow_h 395 #endif // DOMWindow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698