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

Side by Side Diff: components/image_fetcher/ios/ios_image_data_fetcher_wrapper.mm

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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 #import "components/image_fetcher/ios/ios_image_data_fetcher_wrapper.h" 5 #import "components/image_fetcher/ios/ios_image_data_fetcher_wrapper.h"
6 6
7 #import "base/mac/bind_objc_block.h" 7 #import "base/mac/bind_objc_block.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/task_runner.h" 9 #include "base/task_runner.h"
10 #include "base/task_runner_util.h" 10 #include "base/task_runner_util.h"
11 #import "ios/web/public/image_fetcher/webp_decoder.h" 11 #import "components/image_fetcher/ios/webp_decoder.h"
12 #include "net/http/http_response_headers.h" 12 #include "net/http/http_response_headers.h"
13 #include "net/http/http_status_code.h" 13 #include "net/http/http_status_code.h"
14 #include "net/url_request/url_fetcher.h" 14 #include "net/url_request/url_fetcher.h"
15 #include "url/url_constants.h" 15 #include "url/url_constants.h"
16 16
17 #if !defined(__has_feature) || !__has_feature(objc_arc) 17 #if !defined(__has_feature) || !__has_feature(objc_arc)
18 #error "This file requires ARC support." 18 #error "This file requires ARC support."
19 #endif 19 #endif
20 20
21 #pragma mark - IOSImageDataFetcherWrapper 21 #pragma mark - IOSImageDataFetcherWrapper
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 task_runner.get(), FROM_HERE, base::BindBlockArc(^NSData*() { 79 task_runner.get(), FROM_HERE, base::BindBlockArc(^NSData*() {
80 return webp_transcode::WebpDecoder::DecodeWebpImage(data); 80 return webp_transcode::WebpDecoder::DecodeWebpImage(data);
81 }), 81 }),
82 base::BindBlockArc(^(NSData* decodedData) { 82 base::BindBlockArc(^(NSData* decodedData) {
83 callback(decodedData, webp_metadata); 83 callback(decodedData, webp_metadata);
84 })); 84 }));
85 }); 85 });
86 } 86 }
87 87
88 } // namespace image_fetcher 88 } // namespace image_fetcher
OLDNEW
« no previous file with comments | « components/image_fetcher/ios/DEPS ('k') | components/image_fetcher/ios/ios_image_data_fetcher_wrapper_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698