| 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" | |
| 8 #include "chrome/browser/dom_ui/dom_ui_factory.h" | 7 #include "chrome/browser/dom_ui/dom_ui_factory.h" |
| 9 #include "chrome/browser/history/history.h" | 8 #include "chrome/browser/history/history.h" |
| 10 #include "chrome/browser/history/history_backend.h" | 9 #include "chrome/browser/history/history_backend.h" |
| 11 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| 12 #include "chrome/common/url_constants.h" | 11 #include "chrome/common/url_constants.h" |
| 13 | 12 |
| 14 FaviconService::FaviconService(Profile* profile) : profile_(profile) { | 13 FaviconService::FaviconService(Profile* profile) : profile_(profile) { |
| 15 } | 14 } |
| 16 | 15 |
| 17 FaviconService::Handle FaviconService::GetFavicon( | 16 FaviconService::Handle FaviconService::GetFavicon( |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 hs->SetFavicon(page_url, icon_url, image_data); | 83 hs->SetFavicon(page_url, icon_url, image_data); |
| 85 } | 84 } |
| 86 | 85 |
| 87 FaviconService::~FaviconService() { | 86 FaviconService::~FaviconService() { |
| 88 } | 87 } |
| 89 | 88 |
| 90 void FaviconService::ForwardEmptyResultAsync(GetFaviconRequest* request) { | 89 void FaviconService::ForwardEmptyResultAsync(GetFaviconRequest* request) { |
| 91 request->ForwardResultAsync(FaviconDataCallback::TupleType(request->handle(), | 90 request->ForwardResultAsync(FaviconDataCallback::TupleType(request->handle(), |
| 92 false, NULL, false, GURL())); | 91 false, NULL, false, GURL())); |
| 93 } | 92 } |
| OLD | NEW |