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

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

Issue 1125733002: Oilpan: use transition type for MemoryCache::resourcesForURL()'s result. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 TypeStatistic images; 167 TypeStatistic images;
168 TypeStatistic cssStyleSheets; 168 TypeStatistic cssStyleSheets;
169 TypeStatistic scripts; 169 TypeStatistic scripts;
170 TypeStatistic xslStyleSheets; 170 TypeStatistic xslStyleSheets;
171 TypeStatistic fonts; 171 TypeStatistic fonts;
172 TypeStatistic other; 172 TypeStatistic other;
173 }; 173 };
174 174
175 Resource* resourceForURL(const KURL&); 175 Resource* resourceForURL(const KURL&);
176 Resource* resourceForURL(const KURL&, const String& cacheIdentifier); 176 Resource* resourceForURL(const KURL&, const String& cacheIdentifier);
177 WillBeHeapVector<Member<Resource>> resourcesForURL(const KURL&); 177 WillBeHeapVector<RawPtrWillBeMember<Resource>> resourcesForURL(const KURL&);
178 178
179 void add(Resource*); 179 void add(Resource*);
180 void replace(Resource* newResource, Resource* oldResource); 180 void replace(Resource* newResource, Resource* oldResource);
181 void remove(Resource*); 181 void remove(Resource*);
182 bool contains(const Resource*) const; 182 bool contains(const Resource*) const;
183 183
184 static KURL removeFragmentIdentifierIfNeeded(const KURL& originalURL); 184 static KURL removeFragmentIdentifierIfNeeded(const KURL& originalURL);
185 185
186 static String defaultCacheIdentifier(); 186 static String defaultCacheIdentifier();
187 187
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 // Returns the global cache. 324 // Returns the global cache.
325 CORE_EXPORT MemoryCache* memoryCache(); 325 CORE_EXPORT MemoryCache* memoryCache();
326 326
327 // Sets the global cache, used to swap in a test instance. Returns the old 327 // Sets the global cache, used to swap in a test instance. Returns the old
328 // MemoryCache object. 328 // MemoryCache object.
329 CORE_EXPORT PassOwnPtrWillBeRawPtr<MemoryCache> replaceMemoryCacheForTesting(Pas sOwnPtrWillBeRawPtr<MemoryCache>); 329 CORE_EXPORT PassOwnPtrWillBeRawPtr<MemoryCache> replaceMemoryCacheForTesting(Pas sOwnPtrWillBeRawPtr<MemoryCache>);
330 330
331 } 331 }
332 332
333 #endif 333 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/fetch/MemoryCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698