| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef NET_DISK_CACHE_BITMAP_H_ | 5 #ifndef NET_DISK_CACHE_BLOCKFILE_BITMAP_H_ |
| 6 #define NET_DISK_CACHE_BITMAP_H_ | 6 #define NET_DISK_CACHE_BLOCKFILE_BITMAP_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "net/base/net_export.h" | 9 #include "net/base/net_export.h" |
| 10 | 10 |
| 11 namespace disk_cache { | 11 namespace disk_cache { |
| 12 | 12 |
| 13 // This class provides support for simple maps of bits. | 13 // This class provides support for simple maps of bits. |
| 14 class NET_EXPORT_PRIVATE Bitmap { | 14 class NET_EXPORT_PRIVATE Bitmap { |
| 15 public: | 15 public: |
| 16 Bitmap() : map_(NULL), num_bits_(0), array_size_(0), alloc_(false) {} | 16 Bitmap() : map_(NULL), num_bits_(0), array_size_(0), alloc_(false) {} |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 uint32* map_; // The bitmap. | 126 uint32* map_; // The bitmap. |
| 127 int num_bits_; // The upper bound of the bitmap. | 127 int num_bits_; // The upper bound of the bitmap. |
| 128 int array_size_; // The physical size (in uint32s) of the bitmap. | 128 int array_size_; // The physical size (in uint32s) of the bitmap. |
| 129 bool alloc_; // Whether or not we allocated the memory. | 129 bool alloc_; // Whether or not we allocated the memory. |
| 130 | 130 |
| 131 DISALLOW_COPY_AND_ASSIGN(Bitmap); | 131 DISALLOW_COPY_AND_ASSIGN(Bitmap); |
| 132 }; | 132 }; |
| 133 | 133 |
| 134 } // namespace disk_cache | 134 } // namespace disk_cache |
| 135 | 135 |
| 136 #endif // NET_DISK_CACHE_BITMAP_H_ | 136 #endif // NET_DISK_CACHE_BLOCKFILE_BITMAP_H_ |
| OLD | NEW |