| 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 13 matching lines...) Expand all Loading... |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "config.h" | 26 #include "config.h" |
| 27 #include "core/loader/appcache/ApplicationCache.h" | 27 #include "core/loader/appcache/ApplicationCache.h" |
| 28 | 28 |
| 29 #include "bindings/v8/ExceptionMessages.h" | 29 #include "bindings/v8/ExceptionMessages.h" |
| 30 #include "bindings/v8/ExceptionState.h" | 30 #include "bindings/v8/ExceptionState.h" |
| 31 #include "core/dom/Document.h" | 31 #include "core/dom/Document.h" |
| 32 #include "core/dom/ExceptionCode.h" | 32 #include "core/dom/ExceptionCode.h" |
| 33 #include "core/events/EventListener.h" | 33 #include "core/events/EventListener.h" |
| 34 #include "core/events/ThreadLocalEventNames.h" | |
| 35 #include "core/loader/DocumentLoader.h" | 34 #include "core/loader/DocumentLoader.h" |
| 36 #include "core/loader/FrameLoader.h" | 35 #include "core/loader/FrameLoader.h" |
| 37 #include "core/loader/appcache/ApplicationCacheHost.h" | |
| 38 #include "core/frame/Frame.h" | 36 #include "core/frame/Frame.h" |
| 39 | 37 |
| 40 namespace WebCore { | 38 namespace WebCore { |
| 41 | 39 |
| 42 ApplicationCache::ApplicationCache(Frame* frame) | 40 ApplicationCache::ApplicationCache(Frame* frame) |
| 43 : DOMWindowProperty(frame) | 41 : DOMWindowProperty(frame) |
| 44 { | 42 { |
| 45 ScriptWrappable::init(this); | 43 ScriptWrappable::init(this); |
| 46 ApplicationCacheHost* cacheHost = applicationCacheHost(); | 44 ApplicationCacheHost* cacheHost = applicationCacheHost(); |
| 47 if (cacheHost) | 45 if (cacheHost) |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 case ApplicationCacheHost::CACHED_EVENT: | 119 case ApplicationCacheHost::CACHED_EVENT: |
| 122 return EventTypeNames::cached; | 120 return EventTypeNames::cached; |
| 123 case ApplicationCacheHost::OBSOLETE_EVENT: | 121 case ApplicationCacheHost::OBSOLETE_EVENT: |
| 124 return EventTypeNames::obsolete; | 122 return EventTypeNames::obsolete; |
| 125 } | 123 } |
| 126 ASSERT_NOT_REACHED(); | 124 ASSERT_NOT_REACHED(); |
| 127 return EventTypeNames::error; | 125 return EventTypeNames::error; |
| 128 } | 126 } |
| 129 | 127 |
| 130 } // namespace WebCore | 128 } // namespace WebCore |
| OLD | NEW |