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

Unified Diff: net/disk_cache/memory/mem_rankings.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/disk_cache/memory/mem_entry_impl.cc ('k') | net/disk_cache/memory/mem_rankings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/memory/mem_rankings.h
diff --git a/net/disk_cache/memory/mem_rankings.h b/net/disk_cache/memory/mem_rankings.h
deleted file mode 100644
index b75bfc14fb97f144a980f003c639fc7d402becc0..0000000000000000000000000000000000000000
--- a/net/disk_cache/memory/mem_rankings.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// See net/disk_cache/disk_cache.h for the public interface.
-
-#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;
-
-// This class handles the ranking information for the memory-only cache.
-class MemRankings {
- public:
- MemRankings() : head_(NULL), tail_(NULL) {}
- ~MemRankings();
-
- // Inserts a given entry at the head of the queue.
- void Insert(MemEntryImpl* node);
-
- // Removes a given entry from the LRU list.
- void Remove(MemEntryImpl* node);
-
- // Moves a given entry to the head.
- void UpdateRank(MemEntryImpl* node);
-
- // Iterates through the list.
- MemEntryImpl* GetNext(MemEntryImpl* node);
- MemEntryImpl* GetPrev(MemEntryImpl* node);
-
- private:
- MemEntryImpl* head_;
- MemEntryImpl* tail_;
-
- DISALLOW_COPY_AND_ASSIGN(MemRankings);
-};
-
-} // namespace disk_cache
-
-#endif // NET_DISK_CACHE_MEMORY_MEM_RANKINGS_H_
« no previous file with comments | « net/disk_cache/memory/mem_entry_impl.cc ('k') | net/disk_cache/memory/mem_rankings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698