summaryrefslogtreecommitdiffstats
path: root/components/offline_pages/offline_page_feature.h
diff options
context:
space:
mode:
authordimich <dimich@chromium.org>2016-03-08 16:34:12 -0800
committerCommit bot <commit-bot@chromium.org>2016-03-09 00:35:35 +0000
commit1b3ad9bddb26f0dedbc7463397867d0a9981f85b (patch)
tree3eaf2c358e59e8fe97a1d54aba60725a3608b77f /components/offline_pages/offline_page_feature.h
parent1f9673dbd1b71cfa5a0dc5ab06509368153bcb20 (diff)
downloadchromium_src-1b3ad9bddb26f0dedbc7463397867d0a9981f85b.zip
chromium_src-1b3ad9bddb26f0dedbc7463397867d0a9981f85b.tar.gz
chromium_src-1b3ad9bddb26f0dedbc7463397867d0a9981f85b.tar.bz2
Add enable-offlining-recent-pages feature switch. The feature is not yet implemented. See launch bug below for description.
BUG=587599 Review URL: https://codereview.chromium.org/1750883002 Cr-Commit-Position: refs/heads/master@{#379997}
Diffstat (limited to 'components/offline_pages/offline_page_feature.h')
-rw-r--r--components/offline_pages/offline_page_feature.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/components/offline_pages/offline_page_feature.h b/components/offline_pages/offline_page_feature.h
index 600140f..1d01a2d 100644
--- a/components/offline_pages/offline_page_feature.h
+++ b/components/offline_pages/offline_page_feature.h
@@ -5,12 +5,13 @@
#ifndef COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_FEATURE_H_
#define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_FEATURE_H_
+#include "base/feature_list.h"
#include "build/build_config.h"
-#if defined(OS_ANDROID)
-
namespace offline_pages {
+extern const base::Feature kOffliningRecentPagesFeature;
+
// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.components.offlinepages
enum class FeatureMode {
// Offline pages feature is disabled.
@@ -27,8 +28,9 @@ FeatureMode GetOfflinePageFeatureMode();
// Returns true if offline pages is enabled.
bool IsOfflinePagesEnabled();
-} // namespace offline_pages
+// Returns true if offlining of recent pages (aka 'Last N pages') is enabled.
+bool IsOffliningRecentPagesEnabled();
-#endif // defined(OS_ANDROID)
+} // namespace offline_pages
#endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_FEATURE_H_