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

Unified Diff: ios/chrome/browser/suggestions/ios_image_decoder_impl.h

Issue 2324793002: Support WebP images in the IOSImageDecoderImpl (Closed)
Patch Set: noyau@ comments. Created 4 years, 3 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
Index: ios/chrome/browser/suggestions/ios_image_decoder_impl.h
diff --git a/ios/chrome/browser/suggestions/ios_image_decoder_impl.h b/ios/chrome/browser/suggestions/ios_image_decoder_impl.h
index 32b31ed7ad1e74fc2f01de4a94459616df48e42e..07a6fdab0d30ff6b04e6f1f16199332d272931e6 100644
--- a/ios/chrome/browser/suggestions/ios_image_decoder_impl.h
+++ b/ios/chrome/browser/suggestions/ios_image_decoder_impl.h
@@ -5,23 +5,19 @@
#ifndef IOS_CHROME_BROWSER_SUGGESTIONS_IOS_IMAGE_DECODER_IMPL_H_
#define IOS_CHROME_BROWSER_SUGGESTIONS_IOS_IMAGE_DECODER_IMPL_H_
-#include "base/macros.h"
+#include "base/memory/ref_counted.h"
#include "components/image_fetcher/image_decoder.h"
-namespace suggestions {
-
-class IOSImageDecoderImpl : public image_fetcher::ImageDecoder {
- public:
- IOSImageDecoderImpl();
- ~IOSImageDecoderImpl() override;
+namespace base {
+class TaskRunner;
+}
- void DecodeImage(
- const std::string& image_data,
- const image_fetcher::ImageDecodedCallback& callback) override;
+namespace suggestions {
- private:
- DISALLOW_COPY_AND_ASSIGN(IOSImageDecoderImpl);
-};
+// The IOSImageDecoderImpl class is in .mm file, so that it could be used in .cc
+// files through the function below.
+std::unique_ptr<image_fetcher::ImageDecoder> createIOSImageDecoder(
+ const scoped_refptr<base::TaskRunner>& task_runner);
} // namespace suggestions

Powered by Google App Engine
This is Rietveld 408576698