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; |