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

Side by Side Diff: ios/web/public/image_fetcher/image_data_fetcher.mm

Issue 2605913002: Fix include import in ios/web (Closed)
Patch Set: Created 3 years, 11 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "ios/web/public/image_fetcher/image_data_fetcher.h" 5 #import "ios/web/public/image_fetcher/image_data_fetcher.h"
6 6
7 #import <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/mac/scoped_nsobject.h" 12 #import "base/mac/scoped_nsobject.h"
13 #include "base/task_runner.h" 13 #include "base/task_runner.h"
14 #include "base/task_runner_util.h" 14 #include "base/task_runner_util.h"
15 #include "ios/web/public/image_fetcher/webp_decoder.h" 15 #import "ios/web/public/image_fetcher/webp_decoder.h"
16 #include "net/base/load_flags.h" 16 #include "net/base/load_flags.h"
17 #include "net/http/http_response_headers.h" 17 #include "net/http/http_response_headers.h"
18 #include "net/url_request/url_fetcher.h" 18 #include "net/url_request/url_fetcher.h"
19 #include "net/url_request/url_request_context_getter.h" 19 #include "net/url_request/url_request_context_getter.h"
20 20
21 #if !defined(__has_feature) || !__has_feature(objc_arc) 21 #if !defined(__has_feature) || !__has_feature(objc_arc)
22 #error "This file requires ARC support." 22 #error "This file requires ARC support."
23 #endif 23 #endif
24 24
25 namespace { 25 namespace {
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 NSData* data) { 170 NSData* data) {
171 (callback.get())(url, http_response_code, data); 171 (callback.get())(url, http_response_code, data);
172 } 172 }
173 173
174 void ImageDataFetcher::SetRequestContextGetter( 174 void ImageDataFetcher::SetRequestContextGetter(
175 const scoped_refptr<net::URLRequestContextGetter>& request_context_getter) { 175 const scoped_refptr<net::URLRequestContextGetter>& request_context_getter) {
176 request_context_getter_ = request_context_getter; 176 request_context_getter_ = request_context_getter;
177 } 177 }
178 178
179 } // namespace web 179 } // namespace web
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698