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

Side by Side Diff: chrome/browser/ui/webui/favicon_source.h

Issue 6651014: Applied the IconType. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 9 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_FAVICON_SOURCE_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_FAVICON_SOURCE_H_
6 #define CHROME_BROWSER_UI_WEBUI_FAVICON_SOURCE_H_ 6 #define CHROME_BROWSER_UI_WEBUI_FAVICON_SOURCE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 20 matching lines...) Expand all
31 virtual std::string GetMimeType(const std::string&) const; 31 virtual std::string GetMimeType(const std::string&) const;
32 32
33 virtual bool ShouldReplaceExistingSource() const; 33 virtual bool ShouldReplaceExistingSource() const;
34 34
35 private: 35 private:
36 // Called when favicon data is available from the history backend. 36 // Called when favicon data is available from the history backend.
37 void OnFavIconDataAvailable(FaviconService::Handle request_handle, 37 void OnFavIconDataAvailable(FaviconService::Handle request_handle,
38 bool know_favicon, 38 bool know_favicon,
39 scoped_refptr<RefCountedMemory> data, 39 scoped_refptr<RefCountedMemory> data,
40 bool expired, 40 bool expired,
41 GURL url); 41 GURL url,
42 history::IconType icon_type);
42 43
43 // Sends the default favicon. 44 // Sends the default favicon.
44 void SendDefaultResponse(int request_id); 45 void SendDefaultResponse(int request_id);
45 46
46 virtual ~FavIconSource(); 47 virtual ~FavIconSource();
47 48
48 Profile* profile_; 49 Profile* profile_;
49 CancelableRequestConsumerT<int, 0> cancelable_consumer_; 50 CancelableRequestConsumerT<int, 0> cancelable_consumer_;
50 51
51 // Raw PNG representation of the favicon to show when the favicon 52 // Raw PNG representation of the favicon to show when the favicon
52 // database doesn't have a favicon for a webpage. 53 // database doesn't have a favicon for a webpage.
53 scoped_refptr<RefCountedMemory> default_favicon_; 54 scoped_refptr<RefCountedMemory> default_favicon_;
54 55
55 DISALLOW_COPY_AND_ASSIGN(FavIconSource); 56 DISALLOW_COPY_AND_ASSIGN(FavIconSource);
56 }; 57 };
57 58
58 #endif // CHROME_BROWSER_UI_WEBUI_FAVICON_SOURCE_H_ 59 #endif // CHROME_BROWSER_UI_WEBUI_FAVICON_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698