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

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

Issue 1475003002: Remove an unused function from MemoryCache. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « no previous file | third_party/WebKit/Source/core/fetch/MemoryCache.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) 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 TypeStatistic xslStyleSheets; 172 TypeStatistic xslStyleSheets;
173 TypeStatistic fonts; 173 TypeStatistic fonts;
174 TypeStatistic other; 174 TypeStatistic other;
175 }; 175 };
176 176
177 Resource* resourceForURL(const KURL&); 177 Resource* resourceForURL(const KURL&);
178 Resource* resourceForURL(const KURL&, const String& cacheIdentifier); 178 Resource* resourceForURL(const KURL&, const String& cacheIdentifier);
179 WillBeHeapVector<RawPtrWillBeMember<Resource>> resourcesForURL(const KURL&); 179 WillBeHeapVector<RawPtrWillBeMember<Resource>> resourcesForURL(const KURL&);
180 180
181 void add(Resource*); 181 void add(Resource*);
182 void replace(Resource* newResource, Resource* oldResource);
183 void remove(Resource*); 182 void remove(Resource*);
184 bool contains(const Resource*) const; 183 bool contains(const Resource*) const;
185 184
186 static KURL removeFragmentIdentifierIfNeeded(const KURL& originalURL); 185 static KURL removeFragmentIdentifierIfNeeded(const KURL& originalURL);
187 186
188 static String defaultCacheIdentifier(); 187 static String defaultCacheIdentifier();
189 188
190 // Sets the cache's memory capacities, in bytes. These will hold only approx imately, 189 // Sets the cache's memory capacities, in bytes. These will hold only approx imately,
191 // since the decoded cost of resources like scripts and stylesheets is not k nown. 190 // since the decoded cost of resources like scripts and stylesheets is not k nown.
192 // - minDeadBytes: The maximum number of bytes that dead resources should c onsume when the cache is under pressure. 191 // - minDeadBytes: The maximum number of bytes that dead resources should c onsume when the cache is under pressure.
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 // Returns the global cache. 328 // Returns the global cache.
330 CORE_EXPORT MemoryCache* memoryCache(); 329 CORE_EXPORT MemoryCache* memoryCache();
331 330
332 // Sets the global cache, used to swap in a test instance. Returns the old 331 // Sets the global cache, used to swap in a test instance. Returns the old
333 // MemoryCache object. 332 // MemoryCache object.
334 CORE_EXPORT MemoryCache* replaceMemoryCacheForTesting(MemoryCache*); 333 CORE_EXPORT MemoryCache* replaceMemoryCacheForTesting(MemoryCache*);
335 334
336 } 335 }
337 336
338 #endif 337 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/MemoryCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698