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

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

Issue 552733003: Oilpan: make DOMWindowProperty a GC mixin. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Pacify GC plugin wrt LocalDOMWindow::trace() Created 6 years, 3 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) 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 26 matching lines...) Expand all
37 namespace blink { 37 namespace blink {
38 38
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 void ApplicationCache::trace(Visitor* visitor)
48 {
49 EventTargetWithInlineData::trace(visitor);
50 DOMWindowProperty::trace(visitor);
51 }
52
47 void ApplicationCache::willDestroyGlobalObjectInFrame() 53 void ApplicationCache::willDestroyGlobalObjectInFrame()
48 { 54 {
49 if (ApplicationCacheHost* cacheHost = applicationCacheHost()) 55 if (ApplicationCacheHost* cacheHost = applicationCacheHost())
50 cacheHost->setApplicationCache(0); 56 cacheHost->setApplicationCache(0);
51 DOMWindowProperty::willDestroyGlobalObjectInFrame(); 57 DOMWindowProperty::willDestroyGlobalObjectInFrame();
52 } 58 }
53 59
54 ApplicationCacheHost* ApplicationCache::applicationCacheHost() const 60 ApplicationCacheHost* ApplicationCache::applicationCacheHost() const
55 { 61 {
56 if (!m_frame || !m_frame->loader().documentLoader()) 62 if (!m_frame || !m_frame->loader().documentLoader())
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 case ApplicationCacheHost::CACHED_EVENT: 123 case ApplicationCacheHost::CACHED_EVENT:
118 return EventTypeNames::cached; 124 return EventTypeNames::cached;
119 case ApplicationCacheHost::OBSOLETE_EVENT: 125 case ApplicationCacheHost::OBSOLETE_EVENT:
120 return EventTypeNames::obsolete; 126 return EventTypeNames::obsolete;
121 } 127 }
122 ASSERT_NOT_REACHED(); 128 ASSERT_NOT_REACHED();
123 return EventTypeNames::error; 129 return EventTypeNames::error;
124 } 130 }
125 131
126 } // namespace blink 132 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698