OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |