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

Side by Side Diff: net/disk_cache/blockfile/addr.h

Issue 121643003: Reorganize net/disk_cache into backend specific directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix ios breakage Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/disk_cache/block_files_unittest.cc ('k') | net/disk_cache/blockfile/addr.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // This is an internal class that handles the address of a cache record. 5 // This is an internal class that handles the address of a cache record.
6 // See net/disk_cache/disk_cache.h for the public interface of the cache. 6 // See net/disk_cache/disk_cache.h for the public interface of the cache.
7 7
8 #ifndef NET_DISK_CACHE_ADDR_H_ 8 #ifndef NET_DISK_CACHE_BLOCKFILE_ADDR_H_
9 #define NET_DISK_CACHE_ADDR_H_ 9 #define NET_DISK_CACHE_BLOCKFILE_ADDR_H_
10 10
11 #include "net/base/net_export.h" 11 #include "net/base/net_export.h"
12 #include "net/disk_cache/disk_format_base.h" 12 #include "net/disk_cache/blockfile/disk_format_base.h"
13 13
14 namespace disk_cache { 14 namespace disk_cache {
15 15
16 enum FileType { 16 enum FileType {
17 EXTERNAL = 0, 17 EXTERNAL = 0,
18 RANKINGS = 1, 18 RANKINGS = 1,
19 BLOCK_256 = 2, 19 BLOCK_256 = 2,
20 BLOCK_1K = 3, 20 BLOCK_1K = 3,
21 BLOCK_4K = 4, 21 BLOCK_4K = 4,
22 BLOCK_FILES = 5, 22 BLOCK_FILES = 5,
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 static const uint32 kFileSelectorMask = 0x00ff0000; 178 static const uint32 kFileSelectorMask = 0x00ff0000;
179 static const uint32 kFileSelectorOffset = 16; 179 static const uint32 kFileSelectorOffset = 16;
180 static const uint32 kStartBlockMask = 0x0000FFFF; 180 static const uint32 kStartBlockMask = 0x0000FFFF;
181 static const uint32 kFileNameMask = 0x0FFFFFFF; 181 static const uint32 kFileNameMask = 0x0FFFFFFF;
182 182
183 CacheAddr value_; 183 CacheAddr value_;
184 }; 184 };
185 185
186 } // namespace disk_cache 186 } // namespace disk_cache
187 187
188 #endif // NET_DISK_CACHE_ADDR_H_ 188 #endif // NET_DISK_CACHE_BLOCKFILE_ADDR_H_
OLDNEW
« no previous file with comments | « net/disk_cache/block_files_unittest.cc ('k') | net/disk_cache/blockfile/addr.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698