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

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

Issue 399313006: Move bit_cast from base/macros.h to its own header (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix chromeos compile after r368203 Created 4 years, 11 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 | « media/cdm/ppapi/ppapi_cdm_adapter.cc ('k') | net/disk_cache/blockfile/disk_format_v3.h » ('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) 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
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_
OLDNEW
« no previous file with comments | « media/cdm/ppapi/ppapi_cdm_adapter.cc ('k') | net/disk_cache/blockfile/disk_format_v3.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698