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

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

Issue 1818233003: Merge WTF::initializeMainThread into WTF::initialize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
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 12 matching lines...) Expand all
23 #include "core/fetch/MemoryCache.h" 23 #include "core/fetch/MemoryCache.h"
24 24
25 #include "core/fetch/WebCacheMemoryDumpProvider.h" 25 #include "core/fetch/WebCacheMemoryDumpProvider.h"
26 #include "platform/Logging.h" 26 #include "platform/Logging.h"
27 #include "platform/TraceEvent.h" 27 #include "platform/TraceEvent.h"
28 #include "platform/weborigin/SecurityOrigin.h" 28 #include "platform/weborigin/SecurityOrigin.h"
29 #include "platform/weborigin/SecurityOriginHash.h" 29 #include "platform/weborigin/SecurityOriginHash.h"
30 #include "public/platform/Platform.h" 30 #include "public/platform/Platform.h"
31 #include "wtf/Assertions.h" 31 #include "wtf/Assertions.h"
32 #include "wtf/CurrentTime.h" 32 #include "wtf/CurrentTime.h"
33 #include "wtf/MainThread.h"
34 #include "wtf/MathExtras.h" 33 #include "wtf/MathExtras.h"
35 #include "wtf/TemporaryChange.h" 34 #include "wtf/TemporaryChange.h"
36 #include "wtf/text/CString.h" 35 #include "wtf/text/CString.h"
37 36
38 namespace blink { 37 namespace blink {
39 38
40 static Persistent<MemoryCache>* gMemoryCache; 39 static Persistent<MemoryCache>* gMemoryCache;
41 40
42 static const unsigned cDefaultCacheCapacity = 8192 * 1024; 41 static const unsigned cDefaultCacheCapacity = 8192 * 1024;
43 static const unsigned cDeferredPruneDeadCapacityFactor = 2; 42 static const unsigned cDeferredPruneDeadCapacityFactor = 2;
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 printf("(%.1fK, %.1fK, %uA, %dR, %d); ", currentResource->decode dSize() / 1024.0f, (currentResource->encodedSize() + currentResource->overheadSi ze()) / 1024.0f, current->m_accessCount, currentResource->hasClients(), currentR esource->isPurgeable()); 776 printf("(%.1fK, %.1fK, %uA, %dR, %d); ", currentResource->decode dSize() / 1024.0f, (currentResource->encodedSize() + currentResource->overheadSi ze()) / 1024.0f, current->m_accessCount, currentResource->hasClients(), currentR esource->isPurgeable());
778 777
779 current = current->m_previousInAllResourcesList; 778 current = current->m_previousInAllResourcesList;
780 } 779 }
781 } 780 }
782 } 781 }
783 782
784 #endif // MEMORY_CACHE_STATS 783 #endif // MEMORY_CACHE_STATS
785 784
786 } // namespace blink 785 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698