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

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

Issue 7610014: [ntp4] Bookmarks page implementation, first-pass. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Final review tweaks, rebase. Created 9 years, 4 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) 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 #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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 23 matching lines...) Expand all
34 // Called when favicon data is available from the history backend. 34 // Called when favicon data is available from the history backend.
35 void OnFaviconDataAvailable(FaviconService::Handle request_handle, 35 void OnFaviconDataAvailable(FaviconService::Handle request_handle,
36 history::FaviconData favicon); 36 history::FaviconData favicon);
37 37
38 CancelableRequestConsumerTSimple<int> consumer_; 38 CancelableRequestConsumerTSimple<int> consumer_;
39 39
40 // Raw PNG representation of the favicon to show when the favicon 40 // Raw PNG representation of the favicon to show when the favicon
41 // database doesn't have a favicon for a webpage. 41 // database doesn't have a favicon for a webpage.
42 scoped_refptr<RefCountedMemory> default_favicon_; 42 scoped_refptr<RefCountedMemory> default_favicon_;
43 43
44 // A mapping of favicon ID to callback names for requests that are
45 // in-progress.
46 std::map<int, std::string> callbacks_map_;
47
44 DISALLOW_COPY_AND_ASSIGN(FaviconWebUIHandler); 48 DISALLOW_COPY_AND_ASSIGN(FaviconWebUIHandler);
45 }; 49 };
46 50
47 #endif // CHROME_BROWSER_UI_WEBUI_NTP_FAVICON_WEBUI_HANDLER_H_ 51 #endif // CHROME_BROWSER_UI_WEBUI_NTP_FAVICON_WEBUI_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698