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

Unified Diff: components/ntp_snippets/ntp_snippets_service.h

Issue 1974013002: Replace SkBitmap with gfx::Image in the ImageFetcher API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync again Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/ntp_snippets/DEPS ('k') | components/ntp_snippets/ntp_snippets_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ntp_snippets/ntp_snippets_service.h
diff --git a/components/ntp_snippets/ntp_snippets_service.h b/components/ntp_snippets/ntp_snippets_service.h
index e5aba948ca57a5f6701015caefbccbf0ef1916fa..3e7ae41719ca087339256e47bdf9dcf8a7f0aa45 100644
--- a/components/ntp_snippets/ntp_snippets_service.h
+++ b/components/ntp_snippets/ntp_snippets_service.h
@@ -25,12 +25,15 @@
class PrefRegistrySimple;
class PrefService;
-class SkBitmap;
namespace base {
class Value;
}
+namespace gfx {
+class Image;
+}
+
namespace image_fetcher {
class ImageFetcher;
}
@@ -47,7 +50,7 @@ class NTPSnippetsServiceObserver;
class NTPSnippetsService : public KeyedService {
public:
using ImageFetchedCallback =
- base::Callback<void(const std::string& snippet_id, const SkBitmap*)>;
+ base::Callback<void(const std::string& snippet_id, const gfx::Image&)>;
// |application_language_code| should be a ISO 639-1 compliant string, e.g.
// 'en' or 'en-US'. Note that this code should only specify the language, not
« no previous file with comments | « components/ntp_snippets/DEPS ('k') | components/ntp_snippets/ntp_snippets_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698