| 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 <map> |
| 9 #include <string> | 10 #include <string> |
| 10 | 11 |
| 11 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 12 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 13 #include "chrome/browser/favicon/favicon_service.h" | 14 #include "chrome/browser/favicon/favicon_service.h" |
| 14 #include "content/browser/webui/web_ui.h" | 15 #include "content/browser/webui/web_ui.h" |
| 15 | 16 |
| 16 class ExtensionIconColorManager; | 17 class ExtensionIconColorManager; |
| 17 class GURL; | |
| 18 class Profile; | |
| 19 | 18 |
| 20 namespace base { | 19 namespace base { |
| 21 class ListValue; | 20 class ListValue; |
| 22 class StringValue; | |
| 23 } | 21 } |
| 24 | 22 |
| 25 class FaviconWebUIHandler : public WebUIMessageHandler { | 23 class FaviconWebUIHandler : public WebUIMessageHandler { |
| 26 public: | 24 public: |
| 27 FaviconWebUIHandler(); | 25 FaviconWebUIHandler(); |
| 28 virtual ~FaviconWebUIHandler(); | 26 virtual ~FaviconWebUIHandler(); |
| 29 | 27 |
| 30 // WebUIMessageHandler | 28 // WebUIMessageHandler |
| 31 virtual void RegisterMessages() OVERRIDE; | 29 virtual void RegisterMessages() OVERRIDE; |
| 32 | 30 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 59 // database doesn't have a favicon for a webpage. | 57 // database doesn't have a favicon for a webpage. |
| 60 scoped_refptr<RefCountedMemory> default_favicon_; | 58 scoped_refptr<RefCountedMemory> default_favicon_; |
| 61 | 59 |
| 62 // Manage retrieval of icons from apps. | 60 // Manage retrieval of icons from apps. |
| 63 scoped_ptr<ExtensionIconColorManager> app_icon_color_manager_; | 61 scoped_ptr<ExtensionIconColorManager> app_icon_color_manager_; |
| 64 | 62 |
| 65 DISALLOW_COPY_AND_ASSIGN(FaviconWebUIHandler); | 63 DISALLOW_COPY_AND_ASSIGN(FaviconWebUIHandler); |
| 66 }; | 64 }; |
| 67 | 65 |
| 68 #endif // CHROME_BROWSER_UI_WEBUI_NTP_FAVICON_WEBUI_HANDLER_H_ | 66 #endif // CHROME_BROWSER_UI_WEBUI_NTP_FAVICON_WEBUI_HANDLER_H_ |
| OLD | NEW |