OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_UTILITY_IMAGE_DECODER_IMPL_H_ |
| 6 #define CHROME_UTILITY_IMAGE_DECODER_IMPL_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "content/common/image_decoder.mojom.h" |
| 10 |
| 11 namespace content { |
| 12 |
| 13 class ImageDecoderImpl : public mojo::InterfaceImpl<ImageDecoder> { |
| 14 public: |
| 15 ImageDecoderImpl(); |
| 16 ~ImageDecoderImpl() override; |
| 17 |
| 18 private: |
| 19 void DecodeImage( |
| 20 mojo::Array<uint8_t> encoded_data, |
| 21 bool use_robust_jpeg, |
| 22 bool shrink_to_fit, |
| 23 const mojo::Callback<void(bool, ImageDataPtr)>& callback) override; |
| 24 void DecodeImageBase64( |
| 25 const mojo::String& encoded_data, |
| 26 const mojo::Callback<void(bool, ImageDataPtr)>& callback) override; |
| 27 |
| 28 DISALLOW_COPY_AND_ASSIGN(ImageDecoderImpl); |
| 29 }; |
| 30 |
| 31 } // namespace content |
| 32 |
| 33 #endif // CHROME_UTILITY_IMAGE_DECODER_IMPL_H_ |
OLD | NEW |