OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "chrome/browser/favicon_service.h" | 5 #include "chrome/browser/favicon_service.h" |
6 | 6 |
7 #include "chrome/browser/browser_thread.h" | 7 #include "chrome/browser/browser_thread.h" |
8 #include "chrome/browser/dom_ui/dom_ui_factory.h" | 8 #include "chrome/browser/dom_ui/dom_ui_factory.h" |
9 #include "chrome/browser/history/history.h" | 9 #include "chrome/browser/history/history.h" |
10 #include "chrome/browser/history/history_backend.h" | 10 #include "chrome/browser/history/history_backend.h" |
11 #include "chrome/browser/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/common/url_constants.h" | 12 #include "chrome/common/url_constants.h" |
13 | 13 |
14 FaviconService::FaviconService(Profile* profile) : profile_(profile) { | 14 FaviconService::FaviconService(Profile* profile) : profile_(profile) { |
15 } | 15 } |
16 | 16 |
17 FaviconService::Handle FaviconService::GetFavicon( | 17 FaviconService::Handle FaviconService::GetFavicon( |
18 const GURL& icon_url, | 18 const GURL& icon_url, |
19 CancelableRequestConsumerBase* consumer, | 19 CancelableRequestConsumerBase* consumer, |
20 FaviconDataCallback* callback) { | 20 FaviconDataCallback* callback) { |
21 GetFaviconRequest* request = new GetFaviconRequest(callback); | 21 GetFaviconRequest* request = new GetFaviconRequest(callback); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 hs->SetFavicon(page_url, icon_url, image_data); | 84 hs->SetFavicon(page_url, icon_url, image_data); |
85 } | 85 } |
86 | 86 |
87 FaviconService::~FaviconService() { | 87 FaviconService::~FaviconService() { |
88 } | 88 } |
89 | 89 |
90 void FaviconService::ForwardEmptyResultAsync(GetFaviconRequest* request) { | 90 void FaviconService::ForwardEmptyResultAsync(GetFaviconRequest* request) { |
91 request->ForwardResultAsync(FaviconDataCallback::TupleType(request->handle(), | 91 request->ForwardResultAsync(FaviconDataCallback::TupleType(request->handle(), |
92 false, NULL, false, GURL())); | 92 false, NULL, false, GURL())); |
93 } | 93 } |
OLD | NEW |