Index: components/suggestions/image_manager_utils_ios.h |
diff --git a/components/suggestions/image_manager_utils_ios.h b/components/suggestions/image_manager_utils_ios.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..52d2ec13ac607ff739aa3aa0353d40c5a6fd82b6 |
--- /dev/null |
+++ b/components/suggestions/image_manager_utils_ios.h |
@@ -0,0 +1,22 @@ |
+// Copyright 2014 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 COMPONENTS_SUGGESTIONS_IMAGE_MANAGER_UTILS_IOS_H_ |
+#define COMPONENTS_SUGGESTIONS_IMAGE_MANAGER_UTILS_IOS_H_ |
+ |
+#include <vector> |
+ |
+class SkBitmap; |
+ |
+namespace suggestions { |
+ |
+// Caller owns the Bitmap. |
+SkBitmap* DecodeJPEGToSkBitmap(const std::vector<unsigned char>& encoded_data); |
+ |
+bool EncodeSkBitmapToJPEG(const SkBitmap& bitmap, |
+ std::vector<unsigned char>* dest); |
+ |
+} // namespace suggestions |
+ |
+#endif // COMPONENTS_SUGGESTIONS_IMAGE_MANAGER_UTILS_IOS_H_ |