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

Unified Diff: chrome/browser/favicon/favicon_handler.h

Issue 11411180: move favicon download code from chrome/ into content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix order Created 8 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/favicon/favicon_handler.h
diff --git a/chrome/browser/favicon/favicon_handler.h b/chrome/browser/favicon/favicon_handler.h
index fb19d8f0f6aa267070c03e3cd165061fa3479819..7f2edeef1dd7fc1ff850fb3c4db5375a867a497e 100644
--- a/chrome/browser/favicon/favicon_handler.h
+++ b/chrome/browser/favicon/favicon_handler.h
@@ -13,8 +13,8 @@
#include "chrome/browser/common/cancelable_request.h"
#include "chrome/browser/favicon/favicon_service.h"
#include "chrome/browser/favicon/favicon_tab_helper.h"
-#include "chrome/common/favicon_url.h"
#include "chrome/common/ref_counted_util.h"
+#include "content/public/common/favicon_url.h"
#include "googleurl/src/gurl.h"
#include "ui/gfx/favicon_size.h"
#include "ui/gfx/image/image.h"
@@ -94,7 +94,7 @@ class FaviconHandler {
// Message Handler. Must be public, because also called from
// PrerenderContents. Collects the |image_urls| list.
void OnUpdateFaviconURL(int32 page_id,
- const std::vector<FaviconURL>& candidates);
+ const std::vector<content::FaviconURL>& candidates);
// Processes the current image_irls_ entry, requesting the image from the
// history / download service.
@@ -110,7 +110,9 @@ class FaviconHandler {
const std::vector<SkBitmap>& bitmaps);
// For testing.
- const std::deque<FaviconURL>& image_urls() const { return image_urls_; }
+ const std::deque<content::FaviconURL>& image_urls() const {
+ return image_urls_;
+ }
protected:
// These virtual methods make FaviconHandler testable and are overridden by
@@ -237,7 +239,7 @@ class FaviconHandler {
void FetchFaviconInternal();
// Return the current candidate if any.
- FaviconURL* current_candidate() {
+ content::FaviconURL* current_candidate() {
return (image_urls_.size() > 0) ? &image_urls_[0] : NULL;
}
@@ -271,7 +273,7 @@ class FaviconHandler {
const int icon_types_;
// The prioritized favicon candidates from the page back from the renderer.
- std::deque<FaviconURL> image_urls_;
+ std::deque<content::FaviconURL> image_urls_;
// The FaviconBitmapResults from history.
std::vector<history::FaviconBitmapResult> history_results_;
« no previous file with comments | « chrome/browser/favicon/favicon_download_helper_delegate.h ('k') | chrome/browser/favicon/favicon_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698