#ifndef NET_DISK_CACHE_MEMORY_MEM_RANKINGS_H_
#define NET_DISK_CACHE_MEMORY_MEM_RANKINGS_H_
#include "base/basictypes.h"
namespace disk_cache {
class MemEntryImpl;
class MemRankings {
public:
MemRankings() : head_(NULL), tail_(NULL) {}
~MemRankings();
void Insert(MemEntryImpl* node);
void Remove(MemEntryImpl* node);
void UpdateRank(MemEntryImpl* node);
MemEntryImpl* GetNext(MemEntryImpl* node);
MemEntryImpl* GetPrev(MemEntryImpl* node);
private:
MemEntryImpl* head_;
MemEntryImpl* tail_;
DISALLOW_COPY_AND_ASSIGN(MemRankings);
};
}
#endif