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

Side by Side Diff: components/favicon/core/favicon_service.cc

Issue 1055173003: Remove unused ThumbnailDatabase::UpdateIconMapping() and ThumbnailDatabase::CloneIconMappings() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "components/favicon/core/favicon_service.h" 5 #include "components/favicon/core/favicon_service.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/hash.h" 9 #include "base/hash.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 favicon_id, desired_size, callback_runner, tracker); 224 favicon_id, desired_size, callback_runner, tracker);
225 } 225 }
226 return RunWithEmptyResultAsync(callback_runner, tracker); 226 return RunWithEmptyResultAsync(callback_runner, tracker);
227 } 227 }
228 228
229 void FaviconService::SetFaviconOutOfDateForPage(const GURL& page_url) { 229 void FaviconService::SetFaviconOutOfDateForPage(const GURL& page_url) {
230 if (history_service_) 230 if (history_service_)
231 history_service_->SetFaviconsOutOfDateForPage(page_url); 231 history_service_->SetFaviconsOutOfDateForPage(page_url);
232 } 232 }
233 233
234 void FaviconService::CloneFavicon(const GURL& old_page_url,
235 const GURL& new_page_url) {
236 if (history_service_)
237 history_service_->CloneFavicons(old_page_url, new_page_url);
238 }
239
240 void FaviconService::SetImportedFavicons( 234 void FaviconService::SetImportedFavicons(
241 const favicon_base::FaviconUsageDataList& favicon_usage) { 235 const favicon_base::FaviconUsageDataList& favicon_usage) {
242 if (history_service_) 236 if (history_service_)
243 history_service_->SetImportedFavicons(favicon_usage); 237 history_service_->SetImportedFavicons(favicon_usage);
244 } 238 }
245 239
246 void FaviconService::MergeFavicon( 240 void FaviconService::MergeFavicon(
247 const GURL& page_url, 241 const GURL& page_url,
248 const GURL& icon_url, 242 const GURL& icon_url,
249 favicon_base::IconType icon_type, 243 favicon_base::IconType icon_type,
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 callback.Run(favicon_base::FaviconRawBitmapResult()); 365 callback.Run(favicon_base::FaviconRawBitmapResult());
372 return; 366 return;
373 } 367 }
374 368
375 bitmap_result.bitmap_data = base::RefCountedBytes::TakeVector( 369 bitmap_result.bitmap_data = base::RefCountedBytes::TakeVector(
376 &resized_bitmap_data); 370 &resized_bitmap_data);
377 callback.Run(bitmap_result); 371 callback.Run(bitmap_result);
378 } 372 }
379 373
380 } // namespace favicon 374 } // namespace favicon
OLDNEW
« no previous file with comments | « components/favicon/core/favicon_service.h ('k') | components/history/core/browser/history_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698