| OLD | NEW |
| 1 /* | 1 /* |
| 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) | 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) |
| 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> | 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> |
| 4 Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 4 Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 5 | 5 |
| 6 This library is free software; you can redistribute it and/or | 6 This library is free software; you can redistribute it and/or |
| 7 modify it under the terms of the GNU Library General Public | 7 modify it under the terms of the GNU Library General Public |
| 8 License as published by the Free Software Foundation; either | 8 License as published by the Free Software Foundation; either |
| 9 version 2 of the License, or (at your option) any later version. | 9 version 2 of the License, or (at your option) any later version. |
| 10 | 10 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 TypeStatistic images; | 167 TypeStatistic images; |
| 168 TypeStatistic cssStyleSheets; | 168 TypeStatistic cssStyleSheets; |
| 169 TypeStatistic scripts; | 169 TypeStatistic scripts; |
| 170 TypeStatistic xslStyleSheets; | 170 TypeStatistic xslStyleSheets; |
| 171 TypeStatistic fonts; | 171 TypeStatistic fonts; |
| 172 TypeStatistic other; | 172 TypeStatistic other; |
| 173 }; | 173 }; |
| 174 | 174 |
| 175 Resource* resourceForURL(const KURL&); | 175 Resource* resourceForURL(const KURL&); |
| 176 Resource* resourceForURL(const KURL&, const String& cacheIdentifier); | 176 Resource* resourceForURL(const KURL&, const String& cacheIdentifier); |
| 177 WillBeHeapVector<Member<Resource>> resourcesForURL(const KURL&); | 177 WillBeHeapVector<RawPtrWillBeMember<Resource>> resourcesForURL(const KURL&); |
| 178 | 178 |
| 179 void add(Resource*); | 179 void add(Resource*); |
| 180 void replace(Resource* newResource, Resource* oldResource); | 180 void replace(Resource* newResource, Resource* oldResource); |
| 181 void remove(Resource*); | 181 void remove(Resource*); |
| 182 bool contains(const Resource*) const; | 182 bool contains(const Resource*) const; |
| 183 | 183 |
| 184 static KURL removeFragmentIdentifierIfNeeded(const KURL& originalURL); | 184 static KURL removeFragmentIdentifierIfNeeded(const KURL& originalURL); |
| 185 | 185 |
| 186 static String defaultCacheIdentifier(); | 186 static String defaultCacheIdentifier(); |
| 187 | 187 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 // Returns the global cache. | 324 // Returns the global cache. |
| 325 CORE_EXPORT MemoryCache* memoryCache(); | 325 CORE_EXPORT MemoryCache* memoryCache(); |
| 326 | 326 |
| 327 // Sets the global cache, used to swap in a test instance. Returns the old | 327 // Sets the global cache, used to swap in a test instance. Returns the old |
| 328 // MemoryCache object. | 328 // MemoryCache object. |
| 329 CORE_EXPORT PassOwnPtrWillBeRawPtr<MemoryCache> replaceMemoryCacheForTesting(Pas
sOwnPtrWillBeRawPtr<MemoryCache>); | 329 CORE_EXPORT PassOwnPtrWillBeRawPtr<MemoryCache> replaceMemoryCacheForTesting(Pas
sOwnPtrWillBeRawPtr<MemoryCache>); |
| 330 | 330 |
| 331 } | 331 } |
| 332 | 332 |
| 333 #endif | 333 #endif |
| OLD | NEW |