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_UI_WEBUI_EXTENSIONS_EXTENSION_ICON_SOURCE_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_ICON_SOURCE_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_ICON_SOURCE_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_ICON_SOURCE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/task/cancelable_task_tracker.h" |
13 #include "chrome/browser/favicon/favicon_service.h" | 14 #include "chrome/browser/favicon/favicon_service.h" |
14 #include "chrome/common/cancelable_task_tracker.h" | |
15 #include "chrome/common/extensions/extension_icon_set.h" | 15 #include "chrome/common/extensions/extension_icon_set.h" |
16 #include "content/public/browser/url_data_source.h" | 16 #include "content/public/browser/url_data_source.h" |
17 #include "extensions/common/extension_resource.h" | 17 #include "extensions/common/extension_resource.h" |
18 #include "third_party/skia/include/core/SkBitmap.h" | 18 #include "third_party/skia/include/core/SkBitmap.h" |
19 | 19 |
20 class ExtensionIconSet; | 20 class ExtensionIconSet; |
21 class Profile; | 21 class Profile; |
22 | 22 |
23 namespace extensions { | 23 namespace extensions { |
24 class Extension; | 24 class Extension; |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 // Maps tracker ids to request ids. | 149 // Maps tracker ids to request ids. |
150 std::map<int, int> tracker_map_; | 150 std::map<int, int> tracker_map_; |
151 | 151 |
152 // Maps request_ids to ExtensionIconRequests. | 152 // Maps request_ids to ExtensionIconRequests. |
153 std::map<int, ExtensionIconRequest*> request_map_; | 153 std::map<int, ExtensionIconRequest*> request_map_; |
154 | 154 |
155 scoped_ptr<SkBitmap> default_app_data_; | 155 scoped_ptr<SkBitmap> default_app_data_; |
156 | 156 |
157 scoped_ptr<SkBitmap> default_extension_data_; | 157 scoped_ptr<SkBitmap> default_extension_data_; |
158 | 158 |
159 CancelableTaskTracker cancelable_task_tracker_; | 159 base::CancelableTaskTracker cancelable_task_tracker_; |
160 | 160 |
161 DISALLOW_COPY_AND_ASSIGN(ExtensionIconSource); | 161 DISALLOW_COPY_AND_ASSIGN(ExtensionIconSource); |
162 }; | 162 }; |
163 | 163 |
164 } // namespace extensions | 164 } // namespace extensions |
165 | 165 |
166 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_ICON_SOURCE_H_ | 166 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_ICON_SOURCE_H_ |
OLD | NEW |