| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |