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

Unified Diff: net/disk_cache/stats.h

Issue 15956004: Disk cache: Avoid writing uninitialized data to disk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 7 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/backend_impl.cc ('k') | net/disk_cache/stats.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/stats.h
===================================================================
--- net/disk_cache/stats.h (revision 201943)
+++ net/disk_cache/stats.h (working copy)
@@ -80,7 +80,8 @@
int GetLargeEntriesSize();
// Writes the stats into |data|, to be stored at the given cache address.
- bool SerializeStats(void* data, int num_bytes, Addr* address);
+ // Returns the number of bytes copied.
+ int SerializeStats(void* data, int num_bytes, Addr* address);
// Support for StatsHistograms. Together, these methods allow StatsHistograms
// to take a snapshot of the data_sizes_ as the histogram data.
« no previous file with comments | « net/disk_cache/backend_impl.cc ('k') | net/disk_cache/stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698