Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(315)

Side by Side Diff: chrome/browser/ui/webui/extensions/extension_icon_source.h

Issue 12578008: Move CrxFile, FileReader, ExtensionResource to src/extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "chrome/browser/favicon/favicon_service.h" 13 #include "chrome/browser/favicon/favicon_service.h"
14 #include "chrome/common/cancelable_task_tracker.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 "chrome/common/extensions/extension_resource.h"
17 #include "content/public/browser/url_data_source.h" 16 #include "content/public/browser/url_data_source.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;
25 } 25 }
26 26
27 // ExtensionIconSource serves extension icons through network level chrome: 27 // ExtensionIconSource serves extension icons through network level chrome:
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // Performs any remaining transformations (like desaturating the |image|), 93 // Performs any remaining transformations (like desaturating the |image|),
94 // then returns the |image| to the client and clears up any temporary data 94 // then returns the |image| to the client and clears up any temporary data
95 // associated with the |request_id|. 95 // associated with the |request_id|.
96 void FinalizeImage(const SkBitmap* image, int request_id); 96 void FinalizeImage(const SkBitmap* image, int request_id);
97 97
98 // Loads the default image for |request_id| and returns to the client. 98 // Loads the default image for |request_id| and returns to the client.
99 void LoadDefaultImage(int request_id); 99 void LoadDefaultImage(int request_id);
100 100
101 // Loads the extension's |icon| for the given |request_id| and returns the 101 // Loads the extension's |icon| for the given |request_id| and returns the
102 // image to the client. 102 // image to the client.
103 void LoadExtensionImage(const ExtensionResource& icon, int request_id); 103 void LoadExtensionImage(const extensions::ExtensionResource& icon,
104 int request_id);
104 105
105 // Loads the favicon image for the app associated with the |request_id|. If 106 // Loads the favicon image for the app associated with the |request_id|. If
106 // the image does not exist, we fall back to the default image. 107 // the image does not exist, we fall back to the default image.
107 void LoadFaviconImage(int request_id); 108 void LoadFaviconImage(int request_id);
108 109
109 // FaviconService callback 110 // FaviconService callback
110 void OnFaviconDataAvailable( 111 void OnFaviconDataAvailable(
111 int request_id, 112 int request_id,
112 const history::FaviconBitmapResult& bitmap_result); 113 const history::FaviconBitmapResult& bitmap_result);
113 114
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 scoped_ptr<SkBitmap> default_app_data_; 155 scoped_ptr<SkBitmap> default_app_data_;
155 156
156 scoped_ptr<SkBitmap> default_extension_data_; 157 scoped_ptr<SkBitmap> default_extension_data_;
157 158
158 CancelableTaskTracker cancelable_task_tracker_; 159 CancelableTaskTracker cancelable_task_tracker_;
159 160
160 DISALLOW_COPY_AND_ASSIGN(ExtensionIconSource); 161 DISALLOW_COPY_AND_ASSIGN(ExtensionIconSource);
161 }; 162 };
162 163
163 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_ICON_SOURCE_H_ 164 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_ICON_SOURCE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/web_applications/web_app_ui.cc ('k') | chrome/browser/ui/webui/extensions/extension_icon_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698