OLD | NEW |
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 // DataPack represents a read-only view onto an on-disk file that contains | 5 // DataPack represents a read-only view onto an on-disk file that contains |
6 // (key, value) pairs of data. It's used to store static resources like | 6 // (key, value) pairs of data. It's used to store static resources like |
7 // translation strings and images. | 7 // translation strings and images. |
8 | 8 |
9 #ifndef BASE_DATA_PACK_H_ | 9 #ifndef BASE_DATA_PACK_H_ |
10 #define BASE_DATA_PACK_H_ | 10 #define BASE_DATA_PACK_H_ |
11 #pragma once | 11 #pragma once |
12 | 12 |
13 #include <map> | 13 #include <map> |
14 | 14 |
15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
16 #include "base/ref_counted_memory.h" | |
17 #include "base/scoped_ptr.h" | 16 #include "base/scoped_ptr.h" |
18 | 17 |
19 namespace file_util { | 18 namespace file_util { |
20 class MemoryMappedFile; | 19 class MemoryMappedFile; |
21 } | 20 } |
22 class FilePath; | 21 class FilePath; |
| 22 class RefCountedStaticMemory; |
23 | 23 |
24 namespace base { | 24 namespace base { |
25 | 25 |
26 class StringPiece; | 26 class StringPiece; |
27 | 27 |
28 class DataPack { | 28 class DataPack { |
29 public: | 29 public: |
30 DataPack(); | 30 DataPack(); |
31 ~DataPack(); | 31 ~DataPack(); |
32 | 32 |
(...skipping 20 matching lines...) Expand all Loading... |
53 | 53 |
54 // Number of resources in the data. | 54 // Number of resources in the data. |
55 size_t resource_count_; | 55 size_t resource_count_; |
56 | 56 |
57 DISALLOW_COPY_AND_ASSIGN(DataPack); | 57 DISALLOW_COPY_AND_ASSIGN(DataPack); |
58 }; | 58 }; |
59 | 59 |
60 } // namespace base | 60 } // namespace base |
61 | 61 |
62 #endif // BASE_DATA_PACK_H_ | 62 #endif // BASE_DATA_PACK_H_ |
OLD | NEW |