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

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

Issue 2669173002: Use IOSImageDataFetcherWrapper (Closed)
Patch Set: Update comments 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 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..ff74a94fe8feb18571426156e75f8a28378aed62 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,10 +63,17 @@ class URLRequestContextGetter;
// Returns the URL to test if the app is installed.
- (NSURL*)appURLforURL:(NSURL*)url;
+// Deprecated. Use fetchSmallIconWithImageFetcher:completionBlock: instead.
// Calls |block| with the application icon. |contextGetter| must not be nil.
- (void)fetchSmallIconWithContext:(net::URLRequestContextGetter*)contextGetter
gambard 2017/02/02 10:34:07 Kept for downstream compatibility.
gambard 2017/02/02 10:46:02 Wrong CL order. This is not needed. Removed.
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