diff options
Diffstat (limited to 'WebCore/loader/CachedScript.h')
-rw-r--r-- | WebCore/loader/CachedScript.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/WebCore/loader/CachedScript.h b/WebCore/loader/CachedScript.h index 4580cfe..1715e06 100644 --- a/WebCore/loader/CachedScript.h +++ b/WebCore/loader/CachedScript.h @@ -1,10 +1,8 @@ /* - This file is part of the KDE libraries - Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) Copyright (C) 2001 Dirk Mueller <mueller@kde.org> Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) - Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. + Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public @@ -30,6 +28,7 @@ #include "CachedResource.h" #include "TextEncoding.h" +#include "Timer.h" namespace WebCore { @@ -40,9 +39,10 @@ namespace WebCore { CachedScript(const String& url, const String& charset); virtual ~CachedScript(); - const String& script() const { return m_script; } + const String& script(); virtual void addClient(CachedResourceClient*); + virtual void allClientsRemoved(); virtual void setEncoding(const String&); virtual String encoding() const; @@ -53,9 +53,14 @@ namespace WebCore { void checkNotify(); + virtual void destroyDecodedData(); + private: + void decodedDataDeletionTimerFired(Timer<CachedScript>*); + String m_script; TextEncoding m_encoding; + Timer<CachedScript> m_decodedDataDeletionTimer; }; } |