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

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

Issue 8986007: Move WebUIMessageHandler to its own file in the public directory and put it in the content namesp... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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 <map> 9 #include <map>
10 #include <string> 10 #include <string>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "chrome/browser/favicon/favicon_service.h" 14 #include "chrome/browser/favicon/favicon_service.h"
15 #include "content/browser/webui/web_ui.h" 15 #include "content/public/browser/web_ui_message_handler.h"
16 16
17 class ExtensionIconColorManager; 17 class ExtensionIconColorManager;
18 18
19 namespace base { 19 namespace base {
20 class ListValue; 20 class ListValue;
21 } 21 }
22 22
23 class FaviconWebUIHandler : public WebUIMessageHandler { 23 class FaviconWebUIHandler : public content::WebUIMessageHandler {
24 public: 24 public:
25 FaviconWebUIHandler(); 25 FaviconWebUIHandler();
26 virtual ~FaviconWebUIHandler(); 26 virtual ~FaviconWebUIHandler();
27 27
28 // WebUIMessageHandler 28 // WebUIMessageHandler
29 virtual void RegisterMessages() OVERRIDE; 29 virtual void RegisterMessages() OVERRIDE;
30 30
31 // Called from the JS to get the dominant color of a favicon. The first 31 // Called from the JS to get the dominant color of a favicon. The first
32 // argument is a favicon URL, the second is the ID of the DOM node that is 32 // argument is a favicon URL, the second is the ID of the DOM node that is
33 // asking for it. 33 // asking for it.
(...skipping 23 matching lines...) Expand all
57 // database doesn't have a favicon for a webpage. 57 // database doesn't have a favicon for a webpage.
58 scoped_refptr<RefCountedMemory> default_favicon_; 58 scoped_refptr<RefCountedMemory> default_favicon_;
59 59
60 // Manage retrieval of icons from apps. 60 // Manage retrieval of icons from apps.
61 scoped_ptr<ExtensionIconColorManager> app_icon_color_manager_; 61 scoped_ptr<ExtensionIconColorManager> app_icon_color_manager_;
62 62
63 DISALLOW_COPY_AND_ASSIGN(FaviconWebUIHandler); 63 DISALLOW_COPY_AND_ASSIGN(FaviconWebUIHandler);
64 }; 64 };
65 65
66 #endif // CHROME_BROWSER_UI_WEBUI_NTP_FAVICON_WEBUI_HANDLER_H_ 66 #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