| 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_BLOCKFILE_BITMAP_H_ | 5 #ifndef NET_DISK_CACHE_BLOCKFILE_BITMAP_H_ |
| 6 #define NET_DISK_CACHE_BLOCKFILE_BITMAP_H_ | 6 #define NET_DISK_CACHE_BLOCKFILE_BITMAP_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <string.h> |
| 9 | 10 |
| 10 #include "base/macros.h" | 11 #include "base/macros.h" |
| 11 #include "net/base/net_export.h" | 12 #include "net/base/net_export.h" |
| 12 | 13 |
| 13 namespace disk_cache { | 14 namespace disk_cache { |
| 14 | 15 |
| 15 // This class provides support for simple maps of bits. | 16 // This class provides support for simple maps of bits. |
| 16 class NET_EXPORT_PRIVATE Bitmap { | 17 class NET_EXPORT_PRIVATE Bitmap { |
| 17 public: | 18 public: |
| 18 Bitmap() : map_(NULL), num_bits_(0), array_size_(0), alloc_(false) {} | 19 Bitmap() : map_(NULL), num_bits_(0), array_size_(0), alloc_(false) {} |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 int num_bits_; // The upper bound of the bitmap. | 130 int num_bits_; // The upper bound of the bitmap. |
| 130 int array_size_; // The physical size (in uint32s) of the bitmap. | 131 int array_size_; // The physical size (in uint32s) of the bitmap. |
| 131 bool alloc_; // Whether or not we allocated the memory. | 132 bool alloc_; // Whether or not we allocated the memory. |
| 132 | 133 |
| 133 DISALLOW_COPY_AND_ASSIGN(Bitmap); | 134 DISALLOW_COPY_AND_ASSIGN(Bitmap); |
| 134 }; | 135 }; |
| 135 | 136 |
| 136 } // namespace disk_cache | 137 } // namespace disk_cache |
| 137 | 138 |
| 138 #endif // NET_DISK_CACHE_BLOCKFILE_BITMAP_H_ | 139 #endif // NET_DISK_CACHE_BLOCKFILE_BITMAP_H_ |
| OLD | NEW |