Chromium Code Reviews| 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; |