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 // 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 UI_BASE_RESOURCE_DATA_PACK_H_ | 9 #ifndef UI_BASE_RESOURCE_DATA_PACK_H_ |
10 #define UI_BASE_RESOURCE_DATA_PACK_H_ | 10 #define UI_BASE_RESOURCE_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/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/string_piece.h" |
17 #include "ui/base/ui_export.h" | 18 #include "ui/base/ui_export.h" |
18 | 19 |
19 class FilePath; | 20 class FilePath; |
20 class RefCountedStaticMemory; | 21 class RefCountedStaticMemory; |
21 | 22 |
22 namespace base { | |
23 class StringPiece; | |
24 } | |
25 | |
26 namespace file_util { | 23 namespace file_util { |
27 class MemoryMappedFile; | 24 class MemoryMappedFile; |
28 } | 25 } |
29 | 26 |
30 namespace ui { | 27 namespace ui { |
31 | 28 |
32 class UI_EXPORT DataPack { | 29 class UI_EXPORT DataPack { |
33 public: | 30 public: |
34 // What type of encoding the text resources use. | 31 // What type of encoding the text resources use. |
35 enum TextEncodingType { | 32 enum TextEncodingType { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 71 |
75 // Type of encoding for text resources. | 72 // Type of encoding for text resources. |
76 TextEncodingType text_encoding_type_; | 73 TextEncodingType text_encoding_type_; |
77 | 74 |
78 DISALLOW_COPY_AND_ASSIGN(DataPack); | 75 DISALLOW_COPY_AND_ASSIGN(DataPack); |
79 }; | 76 }; |
80 | 77 |
81 } // namespace ui | 78 } // namespace ui |
82 | 79 |
83 #endif // UI_BASE_RESOURCE_DATA_PACK_H_ | 80 #endif // UI_BASE_RESOURCE_DATA_PACK_H_ |
OLD | NEW |