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

Unified Diff: net/disk_cache/addr.h

Issue 15772003: Disk Cache: Make Stats independent of the backend implementation. (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 | « no previous file | net/disk_cache/backend_impl.h » ('j') | net/disk_cache/stats.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/addr.h
===================================================================
--- net/disk_cache/addr.h (revision 201602)
+++ net/disk_cache/addr.h (working copy)
@@ -127,6 +127,11 @@
return EXTERNAL;
}
+ static int RequiredBlocks(int size, FileType file_type) {
gavinp 2013/05/23 15:32:33 This long list of inline functions seems not in ke
rvargas (doing something else) 2013/05/23 19:39:43 They are all trivial functions and I want to hint
+ int block_size = BlockSizeForFileType(file_type);
+ return (size + block_size - 1) / block_size;
+ }
+
// Returns true if this address looks like a valid one.
bool SanityCheck() const;
bool SanityCheckForEntry() const;
« no previous file with comments | « no previous file | net/disk_cache/backend_impl.h » ('j') | net/disk_cache/stats.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698