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

Side by Side Diff: chrome/browser/ui/webui/ntp/favicon_webui_handler.h

Issue 330603004: Rename FaviconBitmapXxx to FaviconRawBitmapXxx (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android Created 6 years, 6 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_NTP_FAVICON_WEBUI_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_FAVICON_WEBUI_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_NTP_FAVICON_WEBUI_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_NTP_FAVICON_WEBUI_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 25 matching lines...) Expand all
36 // As above, but for an app tile. The sole argument is the extension ID. 36 // As above, but for an app tile. The sole argument is the extension ID.
37 void HandleGetAppIconDominantColor(const base::ListValue* args); 37 void HandleGetAppIconDominantColor(const base::ListValue* args);
38 38
39 // Callback getting signal that an app icon is loaded. 39 // Callback getting signal that an app icon is loaded.
40 void NotifyAppIconReady(const std::string& extension_id); 40 void NotifyAppIconReady(const std::string& extension_id);
41 41
42 private: 42 private:
43 // Called when favicon data is available from the history backend. 43 // Called when favicon data is available from the history backend.
44 void OnFaviconDataAvailable( 44 void OnFaviconDataAvailable(
45 int request_handle, 45 int request_handle,
46 const favicon_base::FaviconBitmapResult& bitmap_result); 46 const favicon_base::FaviconRawBitmapResult& bitmap_result);
47 47
48 base::CancelableTaskTracker cancelable_task_tracker_; 48 base::CancelableTaskTracker cancelable_task_tracker_;
49 49
50 // Map from request ID to DOM ID so we can make the appropriate callback when 50 // Map from request ID to DOM ID so we can make the appropriate callback when
51 // the favicon request comes back. This map exists because 51 // the favicon request comes back. This map exists because
52 // CancelableRequestConsumerTSimple only takes POD keys. 52 // CancelableRequestConsumerTSimple only takes POD keys.
53 std::map<int, std::string> dom_id_map_; 53 std::map<int, std::string> dom_id_map_;
54 // A counter to track ID numbers as we use them. 54 // A counter to track ID numbers as we use them.
55 int id_; 55 int id_;
56 56
57 // Raw PNG representation of the favicon to show when the favicon 57 // Raw PNG representation of the favicon to show when the favicon
58 // database doesn't have a favicon for a webpage. 58 // database doesn't have a favicon for a webpage.
59 scoped_refptr<base::RefCountedMemory> default_favicon_; 59 scoped_refptr<base::RefCountedMemory> default_favicon_;
60 60
61 // Manage retrieval of icons from apps. 61 // Manage retrieval of icons from apps.
62 scoped_ptr<ExtensionIconColorManager> app_icon_color_manager_; 62 scoped_ptr<ExtensionIconColorManager> app_icon_color_manager_;
63 63
64 DISALLOW_COPY_AND_ASSIGN(FaviconWebUIHandler); 64 DISALLOW_COPY_AND_ASSIGN(FaviconWebUIHandler);
65 }; 65 };
66 66
67 #endif // CHROME_BROWSER_UI_WEBUI_NTP_FAVICON_WEBUI_HANDLER_H_ 67 #endif // CHROME_BROWSER_UI_WEBUI_NTP_FAVICON_WEBUI_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/ntp/app_launcher_handler.cc ('k') | chrome/browser/ui/webui/ntp/favicon_webui_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698