OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 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 IOS_CHROME_BROWSER_SUGGESTIONS_IOS_IMAGE_DECODER_IMPL_H_ | |
6 #define IOS_CHROME_BROWSER_SUGGESTIONS_IOS_IMAGE_DECODER_IMPL_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "components/image_fetcher/image_decoder.h" | |
10 | |
11 namespace suggestions { | |
12 | |
13 class IOSImageDecoderImpl : public image_fetcher::ImageDecoder { | |
14 public: | |
15 IOSImageDecoderImpl(); | |
16 ~IOSImageDecoderImpl() override; | |
17 | |
18 void DecodeImage( | |
19 const std::string& image_data, | |
noyau (Ping after 24h)
2016/06/30 08:28:53
I'm just curious why this api uses a string here a
markusheintz_
2016/06/30 09:15:14
I want to get rid of the std::string as byte buffe
| |
20 const image_fetcher::ImageDecodedCallback& callback) override; | |
21 | |
22 private: | |
23 DISALLOW_COPY_AND_ASSIGN(IOSImageDecoderImpl); | |
24 }; | |
25 | |
26 } // namespace suggestions | |
27 | |
28 #endif // IOS_CHROME_BROWSER_SUGGESTIONS_IOS_IMAGE_DECODER_IMPL_H_ | |
OLD | NEW |