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

Unified Diff: third_party/WebKit/Source/core/loader/appcache/ApplicationCache.cpp

Issue 2562303002: Add ContextLifecycleObserver::frame() (Closed)
Patch Set: temp Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/loader/appcache/ApplicationCache.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/loader/appcache/ApplicationCache.cpp
diff --git a/third_party/WebKit/Source/core/loader/appcache/ApplicationCache.cpp b/third_party/WebKit/Source/core/loader/appcache/ApplicationCache.cpp
index 19e71db1ece31090638c95b99c4eb24bc0cba0e8..00ac7f1469b1d6d4335810d1867828f0e15e1108 100644
--- a/third_party/WebKit/Source/core/loader/appcache/ApplicationCache.cpp
+++ b/third_party/WebKit/Source/core/loader/appcache/ApplicationCache.cpp
@@ -39,7 +39,7 @@
namespace blink {
ApplicationCache::ApplicationCache(LocalFrame* frame)
- : DOMWindowProperty(frame) {
+ : ContextLifecycleObserver(frame->document()) {
ApplicationCacheHost* cacheHost = applicationCacheHost();
if (cacheHost)
cacheHost->setApplicationCache(this);
@@ -47,13 +47,12 @@ ApplicationCache::ApplicationCache(LocalFrame* frame)
DEFINE_TRACE(ApplicationCache) {
EventTargetWithInlineData::trace(visitor);
- DOMWindowProperty::trace(visitor);
+ ContextLifecycleObserver::trace(visitor);
}
-void ApplicationCache::frameDestroyed() {
+void ApplicationCache::contextDestroyed() {
if (ApplicationCacheHost* cacheHost = applicationCacheHost())
cacheHost->setApplicationCache(0);
- DOMWindowProperty::frameDestroyed();
}
ApplicationCacheHost* ApplicationCache::applicationCacheHost() const {
« no previous file with comments | « third_party/WebKit/Source/core/loader/appcache/ApplicationCache.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698