#ifndef ApplicationCache_h
#define ApplicationCache_h
-#include "bindings/v8/ScriptWrappable.h"
#include "core/events/EventTarget.h"
-#include "core/events/ThreadLocalEventNames.h"
#include "core/loader/appcache/ApplicationCacheHost.h"
#include "core/frame/DOMWindowProperty.h"
+#include "platform/heap/Handle.h"
#include "wtf/Forward.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
-namespace WebCore {
+namespace blink {
class ExceptionState;
-class Frame;
+class LocalFrame;
class KURL;
-class ApplicationCache FINAL : public ScriptWrappable, public RefCounted<ApplicationCache>, public EventTargetWithInlineData, public DOMWindowProperty {
+class ApplicationCache FINAL : public RefCountedWillBeRefCountedGarbageCollected<ApplicationCache>, public EventTargetWithInlineData, public DOMWindowProperty {
REFCOUNTED_EVENT_TARGET(ApplicationCache);
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ApplicationCache);
public:
- static PassRefPtr<ApplicationCache> create(Frame* frame) { return adoptRef(new ApplicationCache(frame)); }
+ static PassRefPtrWillBeRawPtr<ApplicationCache> create(LocalFrame* frame)
+ {
+ return adoptRefWillBeRefCountedGarbageCollected(new ApplicationCache(frame));
+ }
virtual ~ApplicationCache() { ASSERT(!m_frame); }
virtual void willDestroyGlobalObjectInFrame() OVERRIDE;
static const AtomicString& toEventType(ApplicationCacheHost::EventID);
private:
- explicit ApplicationCache(Frame*);
+ explicit ApplicationCache(LocalFrame*);
ApplicationCacheHost* applicationCacheHost() const;
};
-} // namespace WebCore
+} // namespace blink
#endif // ApplicationCache_h