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

Unified Diff: net/disk_cache/addr.h

Issue 20378: Reduce the amount of included header files. Vast change like in "Oh God! This... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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/addr.h
===================================================================
--- net/disk_cache/addr.h (revision 9942)
+++ net/disk_cache/addr.h (working copy)
@@ -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 @@
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 @@
} // namespace disk_cache
-#endif // NET_DISK_CACHE_ADDR_H__
-
+#endif // NET_DISK_CACHE_ADDR_H_

Powered by Google App Engine
This is Rietveld 408576698