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) 2002 Waldo Bastian (bastian@kde.org) | 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) |
5 Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 5 Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
6 | 6 |
7 This library is free software; you can redistribute it and/or | 7 This library is free software; you can redistribute it and/or |
8 modify it under the terms of the GNU Library General Public | 8 modify it under the terms of the GNU Library General Public |
9 License as published by the Free Software Foundation; either | 9 License as published by the Free Software Foundation; either |
10 version 2 of the License, or (at your option) any later version. | 10 version 2 of the License, or (at your option) any later version. |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 #include <stdio.h> | 26 #include <stdio.h> |
27 #include <wtf/CurrentTime.h> | 27 #include <wtf/CurrentTime.h> |
28 #include <wtf/MathExtras.h> | 28 #include <wtf/MathExtras.h> |
29 #include <wtf/MemoryInstrumentationHashMap.h> | 29 #include <wtf/MemoryInstrumentationHashMap.h> |
30 #include <wtf/MemoryInstrumentationVector.h> | 30 #include <wtf/MemoryInstrumentationVector.h> |
31 #include <wtf/MemoryObjectInfo.h> | 31 #include <wtf/MemoryObjectInfo.h> |
32 #include <wtf/TemporaryChange.h> | 32 #include <wtf/TemporaryChange.h> |
33 #include <wtf/text/CString.h> | 33 #include <wtf/text/CString.h> |
34 #include "core/dom/CrossThreadTask.h" | 34 #include "core/dom/CrossThreadTask.h" |
35 #include "core/dom/Document.h" | |
36 #include "core/dom/WebCoreMemoryInstrumentation.h" | 35 #include "core/dom/WebCoreMemoryInstrumentation.h" |
37 #include "core/loader/FrameLoader.h" | |
38 #include "core/loader/FrameLoaderTypes.h" | |
39 #include "core/loader/cache/CachedResource.h" | 36 #include "core/loader/cache/CachedResource.h" |
40 #include "core/loader/cache/CachedResourceHandle.h" | 37 #include "core/loader/cache/CachedResourceHandle.h" |
41 #include "core/page/FrameView.h" | 38 #include "core/page/FrameView.h" |
42 #include "core/platform/Logging.h" | |
43 #include "core/platform/graphics/Image.h" | |
44 #include "core/platform/network/ResourceHandle.h" | |
45 #include "core/workers/WorkerContext.h" | 39 #include "core/workers/WorkerContext.h" |
46 #include "core/workers/WorkerLoaderProxy.h" | 40 #include "core/workers/WorkerLoaderProxy.h" |
47 #include "core/workers/WorkerThread.h" | 41 #include "core/workers/WorkerThread.h" |
48 #include "weborigin/SecurityOrigin.h" | 42 #include "weborigin/SecurityOrigin.h" |
49 #include "weborigin/SecurityOriginHash.h" | |
50 | 43 |
51 using namespace std; | 44 using namespace std; |
52 | 45 |
53 namespace WebCore { | 46 namespace WebCore { |
54 | 47 |
55 static const int cDefaultCacheCapacity = 8192 * 1024; | 48 static const int cDefaultCacheCapacity = 8192 * 1024; |
56 static const double cMinDelayBeforeLiveDecodedPrune = 1; // Seconds. | 49 static const double cMinDelayBeforeLiveDecodedPrune = 1; // Seconds. |
57 static const float cTargetPrunePercentage = .95f; // Percentage of capacity towa
rd which we prune, to avoid immediately pruning again. | 50 static const float cTargetPrunePercentage = .95f; // Percentage of capacity towa
rd which we prune, to avoid immediately pruning again. |
58 static const double cDefaultDecodedDataDeletionInterval = 0; | 51 static const double cDefaultDecodedDataDeletionInterval = 0; |
59 | 52 |
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 if (includeLive || !current->hasClients()) | 768 if (includeLive || !current->hasClients()) |
776 printf("(%.1fK, %.1fK, %uA, %dR, %d, %d); ", current->decodedSiz
e() / 1024.0f, (current->encodedSize() + current->overheadSize()) / 1024.0f, cur
rent->accessCount(), current->hasClients(), current->isPurgeable(), current->was
Purged()); | 769 printf("(%.1fK, %.1fK, %uA, %dR, %d, %d); ", current->decodedSiz
e() / 1024.0f, (current->encodedSize() + current->overheadSize()) / 1024.0f, cur
rent->accessCount(), current->hasClients(), current->isPurgeable(), current->was
Purged()); |
777 | 770 |
778 current = prev; | 771 current = prev; |
779 } | 772 } |
780 } | 773 } |
781 } | 774 } |
782 #endif | 775 #endif |
783 | 776 |
784 } // namespace WebCore | 777 } // namespace WebCore |
OLD | NEW |