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

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

Issue 2111573002: Add ios_image_decoder_impl.* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo in ios_chrome.gyp Created 4 years, 6 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
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_

Powered by Google App Engine
This is Rietveld 408576698