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

Side by Side Diff: Source/core/loader/appcache/ApplicationCache.cpp

Issue 1238083002: Oilpan: Move the EventListener hierarchy to Oilpan's heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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
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 28 matching lines...) Expand all
39 ApplicationCache::ApplicationCache(LocalFrame* frame) 39 ApplicationCache::ApplicationCache(LocalFrame* frame)
40 : DOMWindowProperty(frame) 40 : DOMWindowProperty(frame)
41 { 41 {
42 ApplicationCacheHost* cacheHost = applicationCacheHost(); 42 ApplicationCacheHost* cacheHost = applicationCacheHost();
43 if (cacheHost) 43 if (cacheHost)
44 cacheHost->setApplicationCache(this); 44 cacheHost->setApplicationCache(this);
45 } 45 }
46 46
47 DEFINE_TRACE(ApplicationCache) 47 DEFINE_TRACE(ApplicationCache)
48 { 48 {
49 EventTargetWithInlineData::trace(visitor); 49 RefCountedGarbageCollectedEventTargetWithInlineData<ApplicationCache>::trace (visitor);
50 DOMWindowProperty::trace(visitor); 50 DOMWindowProperty::trace(visitor);
51 } 51 }
52 52
53 void ApplicationCache::willDestroyGlobalObjectInFrame() 53 void ApplicationCache::willDestroyGlobalObjectInFrame()
54 { 54 {
55 if (ApplicationCacheHost* cacheHost = applicationCacheHost()) 55 if (ApplicationCacheHost* cacheHost = applicationCacheHost())
56 cacheHost->setApplicationCache(0); 56 cacheHost->setApplicationCache(0);
57 DOMWindowProperty::willDestroyGlobalObjectInFrame(); 57 DOMWindowProperty::willDestroyGlobalObjectInFrame();
58 } 58 }
59 59
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 case ApplicationCacheHost::CACHED_EVENT: 123 case ApplicationCacheHost::CACHED_EVENT:
124 return EventTypeNames::cached; 124 return EventTypeNames::cached;
125 case ApplicationCacheHost::OBSOLETE_EVENT: 125 case ApplicationCacheHost::OBSOLETE_EVENT:
126 return EventTypeNames::obsolete; 126 return EventTypeNames::obsolete;
127 } 127 }
128 ASSERT_NOT_REACHED(); 128 ASSERT_NOT_REACHED();
129 return EventTypeNames::error; 129 return EventTypeNames::error;
130 } 130 }
131 131
132 } // namespace blink 132 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698