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

Unified Diff: net/disk_cache/mem_entry_impl.h

Issue 12880: Disk cache: Add support for an extra data stream for each cache entry.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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 side-by-side diff with in-line comments
Download patch
Index: net/disk_cache/mem_entry_impl.h
===================================================================
--- net/disk_cache/mem_entry_impl.h (revision 6334)
+++ net/disk_cache/mem_entry_impl.h (working copy)
@@ -57,6 +57,10 @@
bool InUse();
private:
+ enum {
+ NUM_STREAMS = 3
+ };
+
~MemEntryImpl();
// Grows and cleans up the data buffer.
@@ -66,8 +70,8 @@
void UpdateRank(bool modified);
std::string key_;
- std::vector<char> data_[2]; // User data.
- int32 data_size_[2];
+ std::vector<char> data_[NUM_STREAMS]; // User data.
+ int32 data_size_[NUM_STREAMS];
int ref_count_;
MemEntryImpl* next_; // Pointers for the LRU list.

Powered by Google App Engine
This is Rietveld 408576698