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

Unified Diff: ios/chrome/browser/net/image_fetcher/image_fetcher.h

Issue 2521253002: Move ImageFetcher to its own target. (Closed)
Patch Set: Reviewable Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698