| Index: components/offline_pages/offline_page_feature.h
|
| diff --git a/components/offline_pages/offline_page_feature.h b/components/offline_pages/offline_page_feature.h
|
| index fde3a5ee78eaaa8610a3eefb019901018114a513..96fd5a1dbc581963d2d5ace4ee753d0b32e5657e 100644
|
| --- a/components/offline_pages/offline_page_feature.h
|
| +++ b/components/offline_pages/offline_page_feature.h
|
| @@ -10,25 +10,17 @@
|
|
|
| namespace offline_pages {
|
|
|
| +extern const base::Feature kOfflineBookmarksFeature;
|
| extern const base::Feature kOffliningRecentPagesFeature;
|
| extern const base::Feature kOfflinePagesBackgroundLoadingFeature;
|
|
|
| -// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.components.offlinepages
|
| -enum class FeatureMode {
|
| - // Offline pages feature is disabled.
|
| - DISABLED,
|
| - // Offline pages feature is enabled, showing bookmarks in UI strings.
|
| - ENABLED_AS_BOOKMARKS,
|
| - // Offline pages feature is enabled, showing saved pages in UI strings.
|
| - ENABLED_AS_SAVED_PAGES
|
| -};
|
| -
|
| -// Returns the mode where Offline Pages feature is running.
|
| -FeatureMode GetOfflinePageFeatureMode();
|
| -
|
| -// Returns true if offline pages is enabled.
|
| +// Returns true if offline pages, as result of one or more offline features
|
| +// being enabled, is enabled.
|
| bool IsOfflinePagesEnabled();
|
|
|
| +// Returns true if saving bookmarked pages for offline viewing is enabled.
|
| +bool IsOfflineBookmarksEnabled();
|
| +
|
| // Returns true if offlining of recent pages (aka 'Last N pages') is enabled.
|
| bool IsOffliningRecentPagesEnabled();
|
|
|
|
|