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

Side by Side Diff: components/ntp_snippets/content_suggestions_service.h

Issue 2891103002: [Content suggestions favicons] Let the clients rescale the gfx::Image (Closed)
Patch Set: Created 3 years, 7 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_SERVICE_H_ 5 #ifndef COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_SERVICE_H_
6 #define COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_SERVICE_H_ 6 #define COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 326
327 // Re-enables a dismissed category, making querying its provider possible. 327 // Re-enables a dismissed category, making querying its provider possible.
328 void RestoreDismissedCategory(Category category); 328 void RestoreDismissedCategory(Category category);
329 329
330 void RestoreDismissedCategoriesFromPrefs(); 330 void RestoreDismissedCategoriesFromPrefs();
331 void StoreDismissedCategoriesToPrefs(); 331 void StoreDismissedCategoriesToPrefs();
332 332
333 // Get the domain of the suggestion suitable for fetching the favicon. 333 // Get the domain of the suggestion suitable for fetching the favicon.
334 GURL GetFaviconDomain(const ContentSuggestion::ID& suggestion_id); 334 GURL GetFaviconDomain(const ContentSuggestion::ID& suggestion_id);
335 // Callbacks for fetching favicons. 335 // Callbacks for fetching favicons.
336 void GetFaviconFromCache(const GURL& publisher_url,
fhorschig 2017/05/19 08:17:45 The comment above seems weird now. Have you been m
jkrcal 2017/05/19 11:36:39 Done.
337 int minimum_size_in_pixel,
338 int desired_size_in_pixel,
339 const ImageFetchedCallback& callback,
340 bool continue_to_google_server);
336 void OnGetFaviconFromCacheFinished( 341 void OnGetFaviconFromCacheFinished(
337 const GURL& publisher_url, 342 const GURL& publisher_url,
338 int minimum_size_in_pixel, 343 int minimum_size_in_pixel,
339 int desired_size_in_pixel, 344 int desired_size_in_pixel,
340 const ImageFetchedCallback& callback, 345 const ImageFetchedCallback& callback,
341 bool continue_to_google_server, 346 bool continue_to_google_server,
342 const favicon_base::LargeIconImageResult& result); 347 const favicon_base::LargeIconImageResult& result);
343 void OnGetFaviconFromGoogleServerFinished( 348 void OnGetFaviconFromGoogleServerFinished(
344 const GURL& publisher_url, 349 const GURL& publisher_url,
345 int minimum_size_in_pixel, 350 int minimum_size_in_pixel,
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 417
413 // Provides order for categories. 418 // Provides order for categories.
414 std::unique_ptr<CategoryRanker> category_ranker_; 419 std::unique_ptr<CategoryRanker> category_ranker_;
415 420
416 DISALLOW_COPY_AND_ASSIGN(ContentSuggestionsService); 421 DISALLOW_COPY_AND_ASSIGN(ContentSuggestionsService);
417 }; 422 };
418 423
419 } // namespace ntp_snippets 424 } // namespace ntp_snippets
420 425
421 #endif // COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_SERVICE_H_ 426 #endif // COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698