| 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 20 matching lines...) Expand all Loading... |
| 31 #include "core/loader/appcache/ApplicationCacheHost.h" | 31 #include "core/loader/appcache/ApplicationCacheHost.h" |
| 32 #include "platform/heap/Handle.h" | 32 #include "platform/heap/Handle.h" |
| 33 #include "wtf/Forward.h" | 33 #include "wtf/Forward.h" |
| 34 | 34 |
| 35 namespace blink { | 35 namespace blink { |
| 36 | 36 |
| 37 class ExceptionState; | 37 class ExceptionState; |
| 38 class LocalFrame; | 38 class LocalFrame; |
| 39 | 39 |
| 40 class ApplicationCache final : public EventTargetWithInlineData, | 40 class ApplicationCache final : public EventTargetWithInlineData, |
| 41 public ContextLifecycleObserver { | 41 public DOMWindowClient { |
| 42 DEFINE_WRAPPERTYPEINFO(); | 42 DEFINE_WRAPPERTYPEINFO(); |
| 43 USING_GARBAGE_COLLECTED_MIXIN(ApplicationCache); | 43 USING_GARBAGE_COLLECTED_MIXIN(ApplicationCache); |
| 44 | 44 |
| 45 public: | 45 public: |
| 46 static ApplicationCache* create(LocalFrame* frame) { | 46 static ApplicationCache* create(LocalFrame* frame) { |
| 47 return new ApplicationCache(frame); | 47 return new ApplicationCache(frame); |
| 48 } | 48 } |
| 49 ~ApplicationCache() override {} | 49 ~ApplicationCache() override {} |
| 50 | 50 |
| 51 void contextDestroyed() override; | |
| 52 | |
| 53 unsigned short status() const; | 51 unsigned short status() const; |
| 54 void update(ExceptionState&); | 52 void update(ExceptionState&); |
| 55 void swapCache(ExceptionState&); | 53 void swapCache(ExceptionState&); |
| 56 void abort(); | 54 void abort(); |
| 57 | 55 |
| 58 // Explicitly named attribute event listener helpers | 56 // Explicitly named attribute event listener helpers |
| 59 | 57 |
| 60 DEFINE_ATTRIBUTE_EVENT_LISTENER(checking); | 58 DEFINE_ATTRIBUTE_EVENT_LISTENER(checking); |
| 61 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); | 59 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); |
| 62 DEFINE_ATTRIBUTE_EVENT_LISTENER(noupdate); | 60 DEFINE_ATTRIBUTE_EVENT_LISTENER(noupdate); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 77 explicit ApplicationCache(LocalFrame*); | 75 explicit ApplicationCache(LocalFrame*); |
| 78 | 76 |
| 79 void recordAPIUseType() const; | 77 void recordAPIUseType() const; |
| 80 | 78 |
| 81 ApplicationCacheHost* applicationCacheHost() const; | 79 ApplicationCacheHost* applicationCacheHost() const; |
| 82 }; | 80 }; |
| 83 | 81 |
| 84 } // namespace blink | 82 } // namespace blink |
| 85 | 83 |
| 86 #endif // ApplicationCache_h | 84 #endif // ApplicationCache_h |
| OLD | NEW |