OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/disk_cache/addr.h" | 5 #include "net/disk_cache/blockfile/addr.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 namespace disk_cache { | 9 namespace disk_cache { |
10 | 10 |
11 int Addr::start_block() const { | 11 int Addr::start_block() const { |
12 DCHECK(is_block_file()); | 12 DCHECK(is_block_file()); |
13 return value_ & kStartBlockMask; | 13 return value_ & kStartBlockMask; |
14 } | 14 } |
15 | 15 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 if (!SanityCheckV2() || !is_initialized()) | 83 if (!SanityCheckV2() || !is_initialized()) |
84 return false; | 84 return false; |
85 | 85 |
86 if (is_separate_file() || file_type() != RANKINGS || num_blocks() != 1) | 86 if (is_separate_file() || file_type() != RANKINGS || num_blocks() != 1) |
87 return false; | 87 return false; |
88 | 88 |
89 return true; | 89 return true; |
90 } | 90 } |
91 | 91 |
92 } // namespace disk_cache | 92 } // namespace disk_cache |
OLD | NEW |