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

Unified Diff: ios/public/provider/chrome/browser/native_app_launcher/native_app_metadata.h

Issue 2669173002: Use IOSImageDataFetcherWrapper (Closed)
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/public/provider/chrome/browser/native_app_launcher/fake_native_app_metadata.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/public/provider/chrome/browser/native_app_launcher/native_app_metadata.h
diff --git a/ios/public/provider/chrome/browser/native_app_launcher/native_app_metadata.h b/ios/public/provider/chrome/browser/native_app_launcher/native_app_metadata.h
index 349a5bdfcf2ac95e0ced90ff598a0136e44df827..df03e0bf4d52a8eecedd7d6cba1188ad3595bd31 100644
--- a/ios/public/provider/chrome/browser/native_app_launcher/native_app_metadata.h
+++ b/ios/public/provider/chrome/browser/native_app_launcher/native_app_metadata.h
@@ -13,6 +13,10 @@
class GURL;
@class UIImage;
+namespace image_fetcher {
+class IOSImageDataFetcherWrapper;
+}
+
namespace net {
class URLRequestContextGetter;
}
@@ -59,9 +63,11 @@ class URLRequestContextGetter;
// Returns the URL to test if the app is installed.
- (NSURL*)appURLforURL:(NSURL*)url;
-// Calls |block| with the application icon. |contextGetter| must not be nil.
-- (void)fetchSmallIconWithContext:(net::URLRequestContextGetter*)contextGetter
- completionBlock:(void (^)(UIImage*))block;
+// Calls |block| with the application icon. |imageFetcher| must be kept alive
+// during the fetch.
+- (void)fetchSmallIconWithImageFetcher:
+ (image_fetcher::IOSImageDataFetcherWrapper*)imageFetcher
+ completionBlock:(void (^)(UIImage*))block;
// Returns whether this native application can open the |url|.
- (BOOL)canOpenURL:(const GURL&)url;
« no previous file with comments | « ios/public/provider/chrome/browser/native_app_launcher/fake_native_app_metadata.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698