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

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

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/inspector/JavaScriptCallFrame.cpp ('k') | Source/core/page/EventSource.cpp » ('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 21 matching lines...) Expand all
32 #include "core/events/EventListener.h" 32 #include "core/events/EventListener.h"
33 #include "core/frame/LocalFrame.h" 33 #include "core/frame/LocalFrame.h"
34 #include "core/loader/DocumentLoader.h" 34 #include "core/loader/DocumentLoader.h"
35 #include "core/loader/FrameLoader.h" 35 #include "core/loader/FrameLoader.h"
36 36
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 ScriptWrappable::init(this);
43 ApplicationCacheHost* cacheHost = applicationCacheHost(); 42 ApplicationCacheHost* cacheHost = applicationCacheHost();
44 if (cacheHost) 43 if (cacheHost)
45 cacheHost->setApplicationCache(this); 44 cacheHost->setApplicationCache(this);
46 } 45 }
47 46
48 void ApplicationCache::willDestroyGlobalObjectInFrame() 47 void ApplicationCache::willDestroyGlobalObjectInFrame()
49 { 48 {
50 if (ApplicationCacheHost* cacheHost = applicationCacheHost()) 49 if (ApplicationCacheHost* cacheHost = applicationCacheHost())
51 cacheHost->setApplicationCache(0); 50 cacheHost->setApplicationCache(0);
52 DOMWindowProperty::willDestroyGlobalObjectInFrame(); 51 DOMWindowProperty::willDestroyGlobalObjectInFrame();
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 case ApplicationCacheHost::CACHED_EVENT: 117 case ApplicationCacheHost::CACHED_EVENT:
119 return EventTypeNames::cached; 118 return EventTypeNames::cached;
120 case ApplicationCacheHost::OBSOLETE_EVENT: 119 case ApplicationCacheHost::OBSOLETE_EVENT:
121 return EventTypeNames::obsolete; 120 return EventTypeNames::obsolete;
122 } 121 }
123 ASSERT_NOT_REACHED(); 122 ASSERT_NOT_REACHED();
124 return EventTypeNames::error; 123 return EventTypeNames::error;
125 } 124 }
126 125
127 } // namespace blink 126 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/inspector/JavaScriptCallFrame.cpp ('k') | Source/core/page/EventSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698