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

Side by Side Diff: ios/chrome/browser/suggestions/ios_image_decoder_impl.h

Issue 2324793002: Support WebP images in the IOSImageDecoderImpl (Closed)
Patch Set: noyau@ comments. Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_CHROME_BROWSER_SUGGESTIONS_IOS_IMAGE_DECODER_IMPL_H_ 5 #ifndef IOS_CHROME_BROWSER_SUGGESTIONS_IOS_IMAGE_DECODER_IMPL_H_
6 #define IOS_CHROME_BROWSER_SUGGESTIONS_IOS_IMAGE_DECODER_IMPL_H_ 6 #define IOS_CHROME_BROWSER_SUGGESTIONS_IOS_IMAGE_DECODER_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/memory/ref_counted.h"
9 #include "components/image_fetcher/image_decoder.h" 9 #include "components/image_fetcher/image_decoder.h"
10 10
11 namespace base {
12 class TaskRunner;
13 }
14
11 namespace suggestions { 15 namespace suggestions {
12 16
13 class IOSImageDecoderImpl : public image_fetcher::ImageDecoder { 17 // The IOSImageDecoderImpl class is in .mm file, so that it could be used in .cc
sdefresne 2016/10/05 09:15:28 style: Declaration comments describe use of the fu
vitaliii 2016/10/06 06:35:08 Done.
14 public: 18 // files through the function below.
15 IOSImageDecoderImpl(); 19 std::unique_ptr<image_fetcher::ImageDecoder> createIOSImageDecoder(
sdefresne 2016/10/05 09:15:28 style: Regular functions have mixed case; "cheap"
vitaliii 2016/10/06 06:35:08 Done.
16 ~IOSImageDecoderImpl() override; 20 scoped_refptr<base::TaskRunner> task_runner);
17
18 void DecodeImage(
19 const std::string& image_data,
20 const image_fetcher::ImageDecodedCallback& callback) override;
21
22 private:
23 DISALLOW_COPY_AND_ASSIGN(IOSImageDecoderImpl);
24 };
25 21
26 } // namespace suggestions 22 } // namespace suggestions
27 23
28 #endif // IOS_CHROME_BROWSER_SUGGESTIONS_IOS_IMAGE_DECODER_IMPL_H_ 24 #endif // IOS_CHROME_BROWSER_SUGGESTIONS_IOS_IMAGE_DECODER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698