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

Side by Side Diff: components/image_fetcher/ios/webp_decoder.h

Issue 2699633006: Move WebpDecoder from ios/web to components/image_fetcher (Closed)
Patch Set: Separate header Created 3 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_WEB_PUBLIC_IMAGE_FETCHER_WEBP_DECODER_H_ 5 #ifndef COMPONENTS_IMAGE_FETCHER_IOS_WEBP_DECODER_H_
6 #define IOS_WEB_PUBLIC_IMAGE_FETCHER_WEBP_DECODER_H_ 6 #define COMPONENTS_IMAGE_FETCHER_IOS_WEBP_DECODER_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 #include <stddef.h> 9 #include <stddef.h>
10 10
11 #include <memory> 11 #include <memory>
12 12
13 #import "base/mac/scoped_nsobject.h" 13 #import "base/mac/scoped_nsobject.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "third_party/libwebp/webp/decode.h" 15 #include "third_party/libwebp/webp/decode.h"
16 16
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 WebPDecoderConfig config_; 89 WebPDecoderConfig config_;
90 WebpDecoder::State state_; 90 WebpDecoder::State state_;
91 std::unique_ptr<WebPIDecoder, WebPIDecoderDeleter> incremental_decoder_; 91 std::unique_ptr<WebPIDecoder, WebPIDecoderDeleter> incremental_decoder_;
92 base::scoped_nsobject<NSData> output_buffer_; 92 base::scoped_nsobject<NSData> output_buffer_;
93 base::scoped_nsobject<NSMutableData> features_; 93 base::scoped_nsobject<NSMutableData> features_;
94 int has_alpha_; 94 int has_alpha_;
95 }; 95 };
96 96
97 } // namespace webp_transcode 97 } // namespace webp_transcode
98 98
99 #endif // IOS_WEB_PUBLIC_IMAGE_FETCHER_WEBP_DECODER_H_ 99 #endif // COMPONENTS_IMAGE_FETCHER_IOS_WEBP_DECODER_H_
OLDNEW
« no previous file with comments | « components/image_fetcher/ios/ios_image_data_fetcher_wrapper_unittest.mm ('k') | components/image_fetcher/ios/webp_decoder.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698