Index: ios/chrome/browser/reading_list/offline_url_utils.h |
diff --git a/ios/chrome/browser/reading_list/offline_url_utils.h b/ios/chrome/browser/reading_list/offline_url_utils.h |
index 479b75ca4cf627fd2320d5bf3ccddbf953a9da48..19048405623b71e3a8a76c257ed9c018d44dc67e 100644 |
--- a/ios/chrome/browser/reading_list/offline_url_utils.h |
+++ b/ios/chrome/browser/reading_list/offline_url_utils.h |
@@ -8,6 +8,7 @@ |
#include <string> |
#include "base/files/file_path.h" |
+#include "base/strings/string16.h" |
#include "url/gurl.h" |
namespace reading_list { |
@@ -30,6 +31,13 @@ GURL FileURLForDistilledURL(const GURL& distilled_url, |
// Returns whether the URL points to a chrome offline URL. |
bool IsOfflineURL(const GURL& url); |
+// Strips scheme from the original URL of the offline page. This is meant to be |
+// used by UI. |
+// If |removed_chars| is non-NULL, it is set to the number of chars that have |
+// been removed at the begining of |online_url|. |
+base::string16 StripSchemeFromOnlineURL(const base::string16& online_url, |
+ size_t* removed_chars); |
+ |
} // namespace reading_list |
#endif // IOS_CHROME_BROWSER_READING_LIST_OFFLINE_URL_UTILS_H_ |