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.h

Issue 605063003: Clean up forward declarations in Source/core/fetch and /loader (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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/fetch/FetchContext.h ('k') | Source/core/fetch/RawResource.h » ('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) 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
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
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
OLDNEW
« no previous file with comments | « Source/core/fetch/FetchContext.h ('k') | Source/core/fetch/RawResource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698