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

Unified Diff: ios/chrome/browser/reading_list/offline_url_utils.h

Issue 2606873002: Move the offline URL trimming to GetFormattedURL. (Closed)
Patch Set: fix DEPS Created 4 years 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 | « no previous file | ios/chrome/browser/reading_list/offline_url_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « no previous file | ios/chrome/browser/reading_list/offline_url_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698