Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: Source/core/fetch/MemoryCache.cpp

Issue 23887002: Header cleanup: don't include system header stdio.h in non-debug builds (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Reworked. Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/editing/VisibleSelection.cpp ('k') | Source/core/history/HistoryItem.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 23 matching lines...) Expand all
34 #include "core/workers/WorkerLoaderProxy.h" 34 #include "core/workers/WorkerLoaderProxy.h"
35 #include "core/workers/WorkerThread.h" 35 #include "core/workers/WorkerThread.h"
36 #include "public/platform/Platform.h" 36 #include "public/platform/Platform.h"
37 #include "weborigin/SecurityOrigin.h" 37 #include "weborigin/SecurityOrigin.h"
38 #include "weborigin/SecurityOriginHash.h" 38 #include "weborigin/SecurityOriginHash.h"
39 #include "wtf/Assertions.h" 39 #include "wtf/Assertions.h"
40 #include "wtf/CurrentTime.h" 40 #include "wtf/CurrentTime.h"
41 #include "wtf/MathExtras.h" 41 #include "wtf/MathExtras.h"
42 #include "wtf/TemporaryChange.h" 42 #include "wtf/TemporaryChange.h"
43 #include "wtf/text/CString.h" 43 #include "wtf/text/CString.h"
44 #include <stdio.h>
45 44
46 using namespace std; 45 using namespace std;
47 46
48 namespace WebCore { 47 namespace WebCore {
49 48
50 static MemoryCache* gMemoryCache; 49 static MemoryCache* gMemoryCache;
51 50
52 static const unsigned cDefaultCacheCapacity = 8192 * 1024; 51 static const unsigned cDefaultCacheCapacity = 8192 * 1024;
53 static const unsigned cDeferredPruneDeadCapacityFactor = 2; 52 static const unsigned cDeferredPruneDeadCapacityFactor = 2;
54 static const int cMinDelayBeforeLiveDecodedPrune = 1; // Seconds. 53 static const int cMinDelayBeforeLiveDecodedPrune = 1; // Seconds.
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 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()); 678 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());
680 679
681 current = prev; 680 current = prev;
682 } 681 }
683 } 682 }
684 } 683 }
685 684
686 #endif // MEMORY_CACHE_STATS 685 #endif // MEMORY_CACHE_STATS
687 686
688 } // namespace WebCore 687 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/editing/VisibleSelection.cpp ('k') | Source/core/history/HistoryItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698