| 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 18 matching lines...) Expand all Loading... |
| 29 #include "core/fetch/ResourcePtr.h" | 29 #include "core/fetch/ResourcePtr.h" |
| 30 #include "public/platform/WebThread.h" | 30 #include "public/platform/WebThread.h" |
| 31 #include "wtf/HashMap.h" | 31 #include "wtf/HashMap.h" |
| 32 #include "wtf/Noncopyable.h" | 32 #include "wtf/Noncopyable.h" |
| 33 #include "wtf/Vector.h" | 33 #include "wtf/Vector.h" |
| 34 #include "wtf/text/StringHash.h" | 34 #include "wtf/text/StringHash.h" |
| 35 #include "wtf/text/WTFString.h" | 35 #include "wtf/text/WTFString.h" |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 class CSSStyleSheetResource; | |
| 40 class Resource; | 39 class Resource; |
| 41 class ResourceFetcher; | |
| 42 class KURL; | 40 class KURL; |
| 43 class ExecutionContext; | 41 class ExecutionContext; |
| 44 class SecurityOrigin; | |
| 45 struct SecurityOriginHash; | |
| 46 | 42 |
| 47 // This cache holds subresources used by Web pages: images, scripts, stylesheets
, etc. | 43 // This cache holds subresources used by Web pages: images, scripts, stylesheets
, etc. |
| 48 | 44 |
| 49 // The cache keeps a flexible but bounded window of dead resources that grows/sh
rinks | 45 // The cache keeps a flexible but bounded window of dead resources that grows/sh
rinks |
| 50 // depending on the live resource load. Here's an example of cache growth over t
ime, | 46 // depending on the live resource load. Here's an example of cache growth over t
ime, |
| 51 // with a min dead resource capacity of 25% and a max dead resource capacity of
50%: | 47 // with a min dead resource capacity of 25% and a max dead resource capacity of
50%: |
| 52 | 48 |
| 53 // |-----| Dead: - | 49 // |-----| Dead: - |
| 54 // |----------| Live: + | 50 // |----------| Live: + |
| 55 // --|----------| Cache boundary: | (objects outsid
e this mark have been evicted) | 51 // --|----------| Cache boundary: | (objects outsid
e this mark have been evicted) |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 // Returns the global cache. | 293 // Returns the global cache. |
| 298 MemoryCache* memoryCache(); | 294 MemoryCache* memoryCache(); |
| 299 | 295 |
| 300 // Sets the global cache, used to swap in a test instance. Returns the old | 296 // Sets the global cache, used to swap in a test instance. Returns the old |
| 301 // MemoryCache object. | 297 // MemoryCache object. |
| 302 PassOwnPtrWillBeRawPtr<MemoryCache> replaceMemoryCacheForTesting(PassOwnPtrWillB
eRawPtr<MemoryCache>); | 298 PassOwnPtrWillBeRawPtr<MemoryCache> replaceMemoryCacheForTesting(PassOwnPtrWillB
eRawPtr<MemoryCache>); |
| 303 | 299 |
| 304 } | 300 } |
| 305 | 301 |
| 306 #endif | 302 #endif |
| OLD | NEW |