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

Side by Side Diff: net/disk_cache/block_files.h

Issue 164336: Disk Cache: cleanup of OpenBlockFile.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 4 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 | « no previous file | net/disk_cache/block_files.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // See net/disk_cache/disk_cache.h for the public interface. 5 // See net/disk_cache/disk_cache.h for the public interface.
6 6
7 #ifndef NET_DISK_CACHE_BLOCK_FILES_H__ 7 #ifndef NET_DISK_CACHE_BLOCK_FILES_H__
8 #define NET_DISK_CACHE_BLOCK_FILES_H__ 8 #define NET_DISK_CACHE_BLOCK_FILES_H__
9 9
10 #include <vector> 10 #include <vector>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 // Returns the filename for a given file index. 71 // Returns the filename for a given file index.
72 std::wstring Name(int index); 72 std::wstring Name(int index);
73 73
74 bool init_; 74 bool init_;
75 char* zero_buffer_; // Buffer to speed-up cleaning deleted entries. 75 char* zero_buffer_; // Buffer to speed-up cleaning deleted entries.
76 std::wstring path_; // Path to the backing folder. 76 std::wstring path_; // Path to the backing folder.
77 std::vector<MappedFile*> block_files_; // The actual files. 77 std::vector<MappedFile*> block_files_; // The actual files.
78 78
79 FRIEND_TEST(DiskCacheTest, BlockFiles_ZeroSizeFile); 79 FRIEND_TEST(DiskCacheTest, BlockFiles_ZeroSizeFile);
80 FRIEND_TEST(DiskCacheTest, BlockFiles_InvalidFile);
80 81
81 DISALLOW_EVIL_CONSTRUCTORS(BlockFiles); 82 DISALLOW_EVIL_CONSTRUCTORS(BlockFiles);
82 }; 83 };
83 84
84 } // namespace disk_cache 85 } // namespace disk_cache
85 86
86 #endif // NET_DISK_CACHE_BLOCK_FILES_H__ 87 #endif // NET_DISK_CACHE_BLOCK_FILES_H__
OLDNEW
« no previous file with comments | « no previous file | net/disk_cache/block_files.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698