OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_THEMES_BROWSER_THEME_PACK_H_ | 5 #ifndef CHROME_BROWSER_THEMES_BROWSER_THEME_PACK_H_ |
6 #define CHROME_BROWSER_THEMES_BROWSER_THEME_PACK_H_ | 6 #define CHROME_BROWSER_THEMES_BROWSER_THEME_PACK_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 #include <memory> | 11 #include <memory> |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/sequenced_task_runner_helpers.h" | 16 #include "base/sequenced_task_runner_helpers.h" |
17 #include "chrome/browser/themes/custom_theme_supplier.h" | 17 #include "chrome/browser/themes/custom_theme_supplier.h" |
18 #include "extensions/common/extension.h" | 18 #include "extensions/common/extension.h" |
19 #include "third_party/skia/include/core/SkColor.h" | 19 #include "third_party/skia/include/core/SkColor.h" |
20 #include "ui/base/layout.h" | 20 #include "ui/base/layout.h" |
21 #include "ui/gfx/color_utils.h" | 21 #include "ui/gfx/color_utils.h" |
22 | 22 |
23 namespace base { | 23 namespace base { |
24 class DictionaryValue; | 24 class DictionaryValue; |
25 class FilePath; | 25 class FilePath; |
26 class RefCountedMemory; | 26 class RefCountedMemory; |
27 } | 27 } |
28 | 28 |
29 namespace extensions { | |
30 class Extensions; | |
31 } | |
32 | |
33 namespace gfx { | 29 namespace gfx { |
34 class Image; | 30 class Image; |
35 } | 31 } |
36 | 32 |
37 namespace ui { | 33 namespace ui { |
38 class DataPack; | 34 class DataPack; |
39 } | 35 } |
40 | 36 |
41 // An optimized representation of a theme, backed by a mmapped DataPack. | 37 // An optimized representation of a theme, backed by a mmapped DataPack. |
42 // | 38 // |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 // Cache of images created in BuildFromExtension(). Once the theme pack is | 261 // Cache of images created in BuildFromExtension(). Once the theme pack is |
266 // created, this cache should only be accessed on the file thread. There | 262 // created, this cache should only be accessed on the file thread. There |
267 // should be no IDs in |image_memory_| that are in |images_on_file_thread_| | 263 // should be no IDs in |image_memory_| that are in |images_on_file_thread_| |
268 // or vice versa. | 264 // or vice versa. |
269 ImageCache images_on_file_thread_; | 265 ImageCache images_on_file_thread_; |
270 | 266 |
271 DISALLOW_COPY_AND_ASSIGN(BrowserThemePack); | 267 DISALLOW_COPY_AND_ASSIGN(BrowserThemePack); |
272 }; | 268 }; |
273 | 269 |
274 #endif // CHROME_BROWSER_THEMES_BROWSER_THEME_PACK_H_ | 270 #endif // CHROME_BROWSER_THEMES_BROWSER_THEME_PACK_H_ |
OLD | NEW |