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 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..32b31ed7ad1e74fc2f01de4a94459616df48e42e |
--- /dev/null |
+++ b/ios/chrome/browser/suggestions/ios_image_decoder_impl.h |
@@ -0,0 +1,28 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#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 "components/image_fetcher/image_decoder.h" |
+ |
+namespace suggestions { |
+ |
+class IOSImageDecoderImpl : public image_fetcher::ImageDecoder { |
+ public: |
+ IOSImageDecoderImpl(); |
+ ~IOSImageDecoderImpl() override; |
+ |
+ void DecodeImage( |
+ const std::string& image_data, |
+ const image_fetcher::ImageDecodedCallback& callback) override; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(IOSImageDecoderImpl); |
+}; |
+ |
+} // namespace suggestions |
+ |
+#endif // IOS_CHROME_BROWSER_SUGGESTIONS_IOS_IMAGE_DECODER_IMPL_H_ |