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

Side by Side Diff: net/disk_cache/v2/mapped_file.h

Issue 121643003: Reorganize net/disk_cache into backend specific directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more include fixes Created 6 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 unified diff | Download patch | Annotate | Revision Log
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 // See net/disk_cache/disk_cache.h for the public interface of the cache. 5 // See net/disk_cache/disk_cache.h for the public interface of the cache.
6 6
7 #ifndef NET_DISK_CACHE_MAPPED_FILE_H_ 7 #ifndef NET_DISK_CACHE_V2_MAPPED_FILE_H_
8 #define NET_DISK_CACHE_MAPPED_FILE_H_ 8 #define NET_DISK_CACHE_V2_MAPPED_FILE_H_
9 9
10 #include "net/base/net_export.h" 10 #include "net/base/net_export.h"
11 #include "net/disk_cache/file.h" 11 #include "net/disk_cache/v2/file.h"
12 #include "net/disk_cache/file_block.h" 12 #include "net/disk_cache/v2/file_block.h"
13 13
14 namespace base { 14 namespace base {
15 class FilePath; 15 class FilePath;
16 } 16 }
17 17
18 namespace disk_cache { 18 namespace disk_cache {
19 19
20 // This class implements a memory mapped file used to access block-files. The 20 // This class implements a memory mapped file used to access block-files. The
21 // idea is that the header and bitmap will be memory mapped all the time, and 21 // idea is that the header and bitmap will be memory mapped all the time, and
22 // the actual data for the blocks will be access asynchronously (most of the 22 // the actual data for the blocks will be access asynchronously (most of the
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 explicit ScopedFlush(MappedFile* file) : file_(file) {} 68 explicit ScopedFlush(MappedFile* file) : file_(file) {}
69 ~ScopedFlush() { 69 ~ScopedFlush() {
70 file_->Flush(); 70 file_->Flush();
71 } 71 }
72 private: 72 private:
73 MappedFile* file_; 73 MappedFile* file_;
74 }; 74 };
75 75
76 } // namespace disk_cache 76 } // namespace disk_cache
77 77
78 #endif // NET_DISK_CACHE_MAPPED_FILE_H_ 78 #endif // NET_DISK_CACHE_V2_MAPPED_FILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698