Enable rotate style visibility animation for new style web contents modal dialog
[chromium-blink-merge.git] / net / disk_cache / file_block.h
blob25709207df6595fc4dc9634c01e488d69d827ff8
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
3 // found in the LICENSE file.
5 // See net/disk_cache/disk_cache.h for the public interface of the cache.
7 #ifndef NET_DISK_CACHE_FILE_BLOCK_H__
8 #define NET_DISK_CACHE_FILE_BLOCK_H__
10 namespace disk_cache {
12 // 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.
14 // Used to simplify loading / storing the block from disk.
15 class FileBlock {
16 public:
17 virtual ~FileBlock() {}
19 // Returns a pointer to the actual data.
20 virtual void* buffer() const = 0;
22 // Returns the size of the block;
23 virtual size_t size() const = 0;
25 // Returns the file offset of this block.
26 virtual int offset() const = 0;
29 } // namespace disk_cache
31 #endif // NET_DISK_CACHE_FILE_BLOCK_H__