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

Side by Side Diff: Source/core/loader/appcache/ApplicationCache.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/html/track/TextTrackList.cpp ('k') | Source/core/page/EventSource.h » ('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) 2008, 2009 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008, 2009 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 24 matching lines...) Expand all
35 #include "wtf/PassRefPtr.h" 35 #include "wtf/PassRefPtr.h"
36 #include "wtf/RefCounted.h" 36 #include "wtf/RefCounted.h"
37 37
38 namespace WebCore { 38 namespace WebCore {
39 39
40 class ExceptionState; 40 class ExceptionState;
41 class LocalFrame; 41 class LocalFrame;
42 class KURL; 42 class KURL;
43 43
44 class ApplicationCache FINAL : public RefCountedWillBeRefCountedGarbageCollected <ApplicationCache>, public ScriptWrappable, public EventTargetWithInlineData, pu blic DOMWindowProperty { 44 class ApplicationCache FINAL : public RefCountedWillBeRefCountedGarbageCollected <ApplicationCache>, public ScriptWrappable, public EventTargetWithInlineData, pu blic DOMWindowProperty {
45 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<A pplicationCache>); 45 REFCOUNTED_EVENT_TARGET(ApplicationCache);
46 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ApplicationCache);
46 public: 47 public:
47 static PassRefPtrWillBeRawPtr<ApplicationCache> create(LocalFrame* frame) 48 static PassRefPtrWillBeRawPtr<ApplicationCache> create(LocalFrame* frame)
48 { 49 {
49 return adoptRefWillBeRefCountedGarbageCollected(new ApplicationCache(fra me)); 50 return adoptRefWillBeRefCountedGarbageCollected(new ApplicationCache(fra me));
50 } 51 }
51 virtual ~ApplicationCache() { ASSERT(!m_frame); } 52 virtual ~ApplicationCache() { ASSERT(!m_frame); }
52 53
53 virtual void willDestroyGlobalObjectInFrame() OVERRIDE; 54 virtual void willDestroyGlobalObjectInFrame() OVERRIDE;
54 55
55 unsigned short status() const; 56 unsigned short status() const;
(...skipping 10 matching lines...) Expand all
66 DEFINE_ATTRIBUTE_EVENT_LISTENER(progress); 67 DEFINE_ATTRIBUTE_EVENT_LISTENER(progress);
67 DEFINE_ATTRIBUTE_EVENT_LISTENER(updateready); 68 DEFINE_ATTRIBUTE_EVENT_LISTENER(updateready);
68 DEFINE_ATTRIBUTE_EVENT_LISTENER(cached); 69 DEFINE_ATTRIBUTE_EVENT_LISTENER(cached);
69 DEFINE_ATTRIBUTE_EVENT_LISTENER(obsolete); 70 DEFINE_ATTRIBUTE_EVENT_LISTENER(obsolete);
70 71
71 virtual const AtomicString& interfaceName() const OVERRIDE; 72 virtual const AtomicString& interfaceName() const OVERRIDE;
72 virtual ExecutionContext* executionContext() const OVERRIDE; 73 virtual ExecutionContext* executionContext() const OVERRIDE;
73 74
74 static const AtomicString& toEventType(ApplicationCacheHost::EventID); 75 static const AtomicString& toEventType(ApplicationCacheHost::EventID);
75 76
76 void trace(Visitor*) { }
77
78 private: 77 private:
79 explicit ApplicationCache(LocalFrame*); 78 explicit ApplicationCache(LocalFrame*);
80 79
81 ApplicationCacheHost* applicationCacheHost() const; 80 ApplicationCacheHost* applicationCacheHost() const;
82 }; 81 };
83 82
84 } // namespace WebCore 83 } // namespace WebCore
85 84
86 #endif // ApplicationCache_h 85 #endif // ApplicationCache_h
OLDNEW
« no previous file with comments | « Source/core/html/track/TextTrackList.cpp ('k') | Source/core/page/EventSource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698