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

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

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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
« no previous file with comments | « net/disk_cache/blockfile/file.h ('k') | net/disk_cache/blockfile/file_ios.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 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_BLOCKFILE_FILE_BLOCK_H_ 7 #ifndef NET_DISK_CACHE_BLOCKFILE_FILE_BLOCK_H_
8 #define NET_DISK_CACHE_BLOCKFILE_FILE_BLOCK_H_ 8 #define NET_DISK_CACHE_BLOCKFILE_FILE_BLOCK_H_
9 9
10 #include <stddef.h>
11
10 namespace disk_cache { 12 namespace disk_cache {
11 13
12 // This interface exposes common functionality for a single block of data 14 // This interface exposes common functionality for a single block of data
13 // stored on a file-block, regardless of the real type or size of the block. 15 // stored on a file-block, regardless of the real type or size of the block.
14 // Used to simplify loading / storing the block from disk. 16 // Used to simplify loading / storing the block from disk.
15 class FileBlock { 17 class FileBlock {
16 public: 18 public:
17 virtual ~FileBlock() {} 19 virtual ~FileBlock() {}
18 20
19 // Returns a pointer to the actual data. 21 // Returns a pointer to the actual data.
20 virtual void* buffer() const = 0; 22 virtual void* buffer() const = 0;
21 23
22 // Returns the size of the block; 24 // Returns the size of the block;
23 virtual size_t size() const = 0; 25 virtual size_t size() const = 0;
24 26
25 // Returns the file offset of this block. 27 // Returns the file offset of this block.
26 virtual int offset() const = 0; 28 virtual int offset() const = 0;
27 }; 29 };
28 30
29 } // namespace disk_cache 31 } // namespace disk_cache
30 32
31 #endif // NET_DISK_CACHE_BLOCKFILE_FILE_BLOCK_H_ 33 #endif // NET_DISK_CACHE_BLOCKFILE_FILE_BLOCK_H_
OLDNEW
« no previous file with comments | « net/disk_cache/blockfile/file.h ('k') | net/disk_cache/blockfile/file_ios.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698