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

Unified Diff: chrome/browser/android/offline_pages/offline_page_utils.h

Issue 2023293002: OfflinePageModel cleanups - improved CanSavePage() and moved static kInvalidOfflineId to impl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
Index: chrome/browser/android/offline_pages/offline_page_utils.h
diff --git a/chrome/browser/android/offline_pages/offline_page_utils.h b/chrome/browser/android/offline_pages/offline_page_utils.h
index 75c342ab55f39432cbe3d0cad774d37c79d6871d..43eb17afd03f2da809cfc4e63e08e1b4ec8f3659 100644
--- a/chrome/browser/android/offline_pages/offline_page_utils.h
+++ b/chrome/browser/android/offline_pages/offline_page_utils.h
@@ -18,6 +18,9 @@ struct OfflinePageItem;
class OfflinePageUtils {
public:
+ // Returns true if saving an offline snapshot may be attempted for |url|.
+ static bool CanSaveURL(const GURL& url);
+
// Returns true if |url| might point to an offline page.
static bool MightBeOfflineURL(const GURL& url);

Powered by Google App Engine
This is Rietveld 408576698