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

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

Issue 2411243004: [WeakMemoryCache] Remove LRU lists, prune order control and live/dead distinction (Closed)
Patch Set: Rebase Created 4 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
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) 2006 Samuel Weinig (sam.weinig@gmail.com) 4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
6 rights reserved. 6 rights reserved.
7 7
8 This library is free software; you can redistribute it and/or 8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Library General Public 9 modify it under the terms of the GNU Library General Public
10 License as published by the Free Software Foundation; either 10 License as published by the Free Software Foundation; either
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 void markClientFinished(ResourceClient*); 313 void markClientFinished(ResourceClient*);
314 314
315 virtual bool hasClientsOrObservers() const { 315 virtual bool hasClientsOrObservers() const {
316 return !m_clients.isEmpty() || !m_clientsAwaitingCallback.isEmpty() || 316 return !m_clients.isEmpty() || !m_clientsAwaitingCallback.isEmpty() ||
317 !m_finishedClients.isEmpty(); 317 !m_finishedClients.isEmpty();
318 } 318 }
319 virtual void destroyDecodedDataForFailedRevalidation() {} 319 virtual void destroyDecodedDataForFailedRevalidation() {}
320 320
321 void setEncodedSize(size_t); 321 void setEncodedSize(size_t);
322 void setDecodedSize(size_t); 322 void setDecodedSize(size_t);
323 void didAccessDecodedData();
324 323
325 void finishPendingClients(); 324 void finishPendingClients();
326 325
327 virtual void didAddClient(ResourceClient*); 326 virtual void didAddClient(ResourceClient*);
328 void willAddClientOrObserver(PreloadReferencePolicy); 327 void willAddClientOrObserver(PreloadReferencePolicy);
329 328
330 // |this| object may be dead after didRemoveClientOrObserver(). 329 // |this| object may be dead after didRemoveClientOrObserver().
331 void didRemoveClientOrObserver(); 330 void didRemoveClientOrObserver();
332 virtual void allClientsAndObserversRemoved(); 331 virtual void allClientsAndObserversRemoved();
333 332
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 }; 464 };
466 465
467 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ 466 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \
468 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ 467 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \
469 resource->getType() == Resource::typeName, \ 468 resource->getType() == Resource::typeName, \
470 resource.getType() == Resource::typeName); 469 resource.getType() == Resource::typeName);
471 470
472 } // namespace blink 471 } // namespace blink
473 472
474 #endif 473 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698