| Index: ios/chrome/browser/net/image_fetcher/image_fetcher.h
|
| diff --git a/ios/chrome/browser/net/image_fetcher.h b/ios/chrome/browser/net/image_fetcher/image_fetcher.h
|
| similarity index 87%
|
| copy from ios/chrome/browser/net/image_fetcher.h
|
| copy to ios/chrome/browser/net/image_fetcher/image_fetcher.h
|
| index 1f320772249586fb34ffa31c85d5f9354538890f..1662a312feb0e70723775047c971722303e3aa18 100644
|
| --- a/ios/chrome/browser/net/image_fetcher.h
|
| +++ b/ios/chrome/browser/net/image_fetcher/image_fetcher.h
|
| @@ -2,8 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef IOS_CHROME_BROWSER_NET_IMAGE_FETCHER_H_
|
| -#define IOS_CHROME_BROWSER_NET_IMAGE_FETCHER_H_
|
| +#ifndef IOS_CHROME_BROWSER_NET_IMAGE_FETCHER_IMAGE_FETCHER_H_
|
| +#define IOS_CHROME_BROWSER_NET_IMAGE_FETCHER_IMAGE_FETCHER_H_
|
|
|
| #include <map>
|
|
|
| @@ -27,8 +27,9 @@ class URLRequestContextGetter;
|
| // Callback that informs of the download of an image encoded in |data|,
|
| // downloaded from |url|, and with the http status |http_response_code|. If the
|
| // url is a data URL, |http_response_code| is always 200.
|
| -using ImageFetchedCallback =
|
| - void (^)(const GURL& url, int http_response_code, NSData* data);
|
| +using ImageFetchedCallback = void (^)(const GURL& url,
|
| + int http_response_code,
|
| + NSData* data);
|
|
|
| // Utility class that will retrieve an image from an URL. The image is returned
|
| // as NSData which can be used with +[UIImage imageWithData:]. This class
|
| @@ -59,8 +60,9 @@ class ImageFetcher : public net::URLFetcherDelegate {
|
|
|
| // A valid request context getter is required before starting the download.
|
| // (virtual for testing)
|
| - virtual void SetRequestContextGetter(const scoped_refptr<
|
| - net::URLRequestContextGetter>& request_context_getter);
|
| + virtual void SetRequestContextGetter(
|
| + const scoped_refptr<net::URLRequestContextGetter>&
|
| + request_context_getter);
|
|
|
| // net::URLFetcherDelegate:
|
| void OnURLFetchComplete(const net::URLFetcher* source) override;
|
| @@ -87,4 +89,4 @@ class ImageFetcher : public net::URLFetcherDelegate {
|
| base::WeakPtrFactory<ImageFetcher> weak_factory_;
|
| };
|
|
|
| -#endif // IOS_CHROME_BROWSER_NET_IMAGE_FETCHER_H_
|
| +#endif // IOS_CHROME_BROWSER_NET_IMAGE_FETCHER_IMAGE_FETCHER_H_
|
|
|