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

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

Issue 7259019: Move base/values.h into the base namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "chrome/browser/favicon/favicon_service.h" 13 #include "chrome/browser/favicon/favicon_service.h"
14 #include "content/browser/webui/web_ui.h" 14 #include "content/browser/webui/web_ui.h"
15 15
16 class GURL; 16 class GURL;
17 class Profile;
18
19 namespace base {
17 class ListValue; 20 class ListValue;
18 class Profile; 21 }
19 22
20 class FaviconWebUIHandler : public WebUIMessageHandler { 23 class FaviconWebUIHandler : public WebUIMessageHandler {
21 public: 24 public:
22 FaviconWebUIHandler(); 25 FaviconWebUIHandler();
23 virtual ~FaviconWebUIHandler(); 26 virtual ~FaviconWebUIHandler();
24 27
25 // WebUIMessageHandler 28 // WebUIMessageHandler
26 virtual void RegisterMessages(); 29 virtual void RegisterMessages();
27 30
28 void HandleGetFaviconDominantColor(const ListValue* args); 31 void HandleGetFaviconDominantColor(const base::ListValue* args);
29 32
30 private: 33 private:
31 // Called when favicon data is available from the history backend. 34 // Called when favicon data is available from the history backend.
32 void OnFaviconDataAvailable(FaviconService::Handle request_handle, 35 void OnFaviconDataAvailable(FaviconService::Handle request_handle,
33 history::FaviconData favicon); 36 history::FaviconData favicon);
34 37
35 CancelableRequestConsumerTSimple<int> consumer_; 38 CancelableRequestConsumerTSimple<int> consumer_;
36 39
37 // Raw PNG representation of the favicon to show when the favicon 40 // Raw PNG representation of the favicon to show when the favicon
38 // database doesn't have a favicon for a webpage. 41 // database doesn't have a favicon for a webpage.
39 scoped_refptr<RefCountedMemory> default_favicon_; 42 scoped_refptr<RefCountedMemory> default_favicon_;
40 43
41 DISALLOW_COPY_AND_ASSIGN(FaviconWebUIHandler); 44 DISALLOW_COPY_AND_ASSIGN(FaviconWebUIHandler);
42 }; 45 };
43 46
44 #endif // CHROME_BROWSER_UI_WEBUI_NTP_FAVICON_WEBUI_HANDLER_H_ 47 #endif // CHROME_BROWSER_UI_WEBUI_NTP_FAVICON_WEBUI_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/ntp/app_launcher_handler.h ('k') | chrome/browser/ui/webui/ntp/most_visited_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698