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

Unified Diff: net/disk_cache/mem_entry_impl.h

Issue 6613027: Adds memory cache logging, and updates disk cache logging (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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
Index: net/disk_cache/mem_entry_impl.h
===================================================================
--- net/disk_cache/mem_entry_impl.h (revision 76773)
+++ net/disk_cache/mem_entry_impl.h (working copy)
@@ -8,6 +8,7 @@
#include "base/hash_tables.h"
#include "base/scoped_ptr.h"
+#include "net/base/net_log.h"
#include "net/disk_cache/disk_cache.h"
#include "testing/gtest/include/gtest/gtest_prod.h"
@@ -54,7 +55,7 @@
// Performs the initialization of a EntryImpl that will be added to the
// cache.
- bool CreateEntry(const std::string& key);
+ bool CreateEntry(const std::string& key, net::NetLog* net_log);
// Permanently destroys this entry.
void InternalDoom();
@@ -82,6 +83,10 @@
return parent_ ? kChildEntry : kParentEntry;
}
+ net::BoundNetLog& net_log() {
+ return net_log_;
+ }
+
// Entry interface.
virtual void Doom();
virtual void Close();
@@ -113,6 +118,12 @@
~MemEntryImpl();
+ int InternalReadData(int index, int offset, net::IOBuffer* buf, int buf_len);
rvargas (doing something else) 2011/03/04 21:39:16 nit: Add a comment for this block of methods.
mmenke 2011/03/07 17:46:41 Done.
+ int InternalWriteData(int index, int offset, net::IOBuffer* buf, int buf_len,
+ bool truncate);
+ int InternalReadSparseData(int64 offset, net::IOBuffer* buf, int buf_len);
+ int InternalWriteSparseData(int64 offset, net::IOBuffer* buf, int buf_len);
+
// Old Entry interface.
int GetAvailableRange(int64 offset, int len, int64* start);
@@ -163,6 +174,8 @@
MemBackendImpl* backend_; // Back pointer to the cache.
bool doomed_; // True if this entry was removed from the cache.
+ net::BoundNetLog net_log_;
+
DISALLOW_COPY_AND_ASSIGN(MemEntryImpl);
};

Powered by Google App Engine
This is Rietveld 408576698