diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-18 19:47:21 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-18 19:47:21 +0000 |
commit | 319d9e6f29cc2d27c0f72ce701d905d2402c350a (patch) | |
tree | 5d637ba43b9aeed5c925e694e50aa251230c0b92 /net/disk_cache/addr.h | |
parent | 22f21125f11953e1022f5e75e560c1af9484503e (diff) | |
download | chromium_src-319d9e6f29cc2d27c0f72ce701d905d2402c350a.zip chromium_src-319d9e6f29cc2d27c0f72ce701d905d2402c350a.tar.gz chromium_src-319d9e6f29cc2d27c0f72ce701d905d2402c350a.tar.bz2 |
Reduce the amount of included header files. Vast change like in "Oh God! This revision changes half of the source files!".
Review URL: http://codereview.chromium.org/20378
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9958 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/addr.h')
-rw-r--r-- | net/disk_cache/addr.h | 30 |
1 files changed, 6 insertions, 24 deletions
diff --git a/net/disk_cache/addr.h b/net/disk_cache/addr.h index 375b2c5..a504019 100644 --- a/net/disk_cache/addr.h +++ b/net/disk_cache/addr.h @@ -5,11 +5,9 @@ // This is an internal class that handles the address of a cache record. // See net/disk_cache/disk_cache.h for the public interface of the cache. -#ifndef NET_DISK_CACHE_ADDR_H__ -#define NET_DISK_CACHE_ADDR_H__ +#ifndef NET_DISK_CACHE_ADDR_H_ +#define NET_DISK_CACHE_ADDR_H_ -#include "base/basictypes.h" -#include "base/logging.h" #include "net/disk_cache/disk_format.h" namespace disk_cache { @@ -87,24 +85,9 @@ class Addr { return ((value_ & kFileSelectorMask) >> kFileSelectorOffset); } - int start_block() const { - DCHECK(is_block_file()); - return value_ & kStartBlockMask; - } - - int num_blocks() const { - DCHECK(is_block_file() || !value_); - return ((value_ & kNumBlocksMask) >> kNumBlocksOffset) + 1; - } - - bool SetFileNumber(int file_number) { - DCHECK(is_separate_file()); - if (file_number & ~kFileNameMask) - return false; - value_ = kInitializedMask | file_number; - return true; - } - + int start_block() const; + int num_blocks() const; + bool SetFileNumber(int file_number); int BlockSize() const { return BlockSizeForFileType(file_type()); } @@ -151,5 +134,4 @@ class Addr { } // namespace disk_cache -#endif // NET_DISK_CACHE_ADDR_H__ - +#endif // NET_DISK_CACHE_ADDR_H_ |