diff options
author | Ben Murdoch <benm@google.com> | 2009-08-11 17:01:47 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2009-08-11 18:21:02 +0100 |
commit | 0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5 (patch) | |
tree | 2943df35f62d885c89d01063cc528dd73b480fea /WebCore/loader/CachedResource.h | |
parent | 7e7a70bfa49a1122b2597a1e6367d89eb4035eca (diff) | |
download | external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.zip external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.tar.gz external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.tar.bz2 |
Merge in WebKit r47029.
Diffstat (limited to 'WebCore/loader/CachedResource.h')
-rw-r--r-- | WebCore/loader/CachedResource.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/WebCore/loader/CachedResource.h b/WebCore/loader/CachedResource.h index 16cce26..babdf89 100644 --- a/WebCore/loader/CachedResource.h +++ b/WebCore/loader/CachedResource.h @@ -87,7 +87,7 @@ public: const String &url() const { return m_url; } Type type() const { return m_type; } - virtual void addClient(CachedResourceClient*); + void addClient(CachedResourceClient*); void removeClient(CachedResourceClient*); bool hasClients() const { return !m_clients.isEmpty(); } void deleteIfPossible(); @@ -100,7 +100,8 @@ public: }; PreloadResult preloadResult() const { return m_preloadResult; } void setRequestedFromNetworkingLayer() { m_requestedFromNetworkingLayer = true; } - + + virtual void didAddClient(CachedResourceClient*) = 0; virtual void allClientsRemoved() { } unsigned count() const { return m_clients.size(); } @@ -204,6 +205,8 @@ protected: bool m_errorOccurred; private: + void addClientToSet(CachedResourceClient*); + // These are called by the friendly Cache only void setResourceToRevalidate(CachedResource*); void switchClientsToRevalidatedResource(); |