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

Side by Side Diff: components/offline_pages/offline_page_feature.h

Issue 1750883002: Add enable-offlining-recent-pages feature switch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resolve Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « components/offline_pages/BUILD.gn ('k') | components/offline_pages/offline_page_feature.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_FEATURE_H_ 5 #ifndef COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_FEATURE_H_
6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_FEATURE_H_ 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_FEATURE_H_
7 7
8 #include "base/feature_list.h"
8 #include "build/build_config.h" 9 #include "build/build_config.h"
9 10
10 #if defined(OS_ANDROID) 11 namespace offline_pages {
11 12
12 namespace offline_pages { 13 extern const base::Feature kOffliningRecentPagesFeature;
13 14
14 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.components.offlinepages 15 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.components.offlinepages
15 enum class FeatureMode { 16 enum class FeatureMode {
16 // Offline pages feature is disabled. 17 // Offline pages feature is disabled.
17 DISABLED, 18 DISABLED,
18 // Offline pages feature is enabled, showing bookmarks in UI strings. 19 // Offline pages feature is enabled, showing bookmarks in UI strings.
19 ENABLED_AS_BOOKMARKS, 20 ENABLED_AS_BOOKMARKS,
20 // Offline pages feature is enabled, showing saved pages in UI strings. 21 // Offline pages feature is enabled, showing saved pages in UI strings.
21 ENABLED_AS_SAVED_PAGES 22 ENABLED_AS_SAVED_PAGES
22 }; 23 };
23 24
24 // Returns the mode where Offline Pages feature is running. 25 // Returns the mode where Offline Pages feature is running.
25 FeatureMode GetOfflinePageFeatureMode(); 26 FeatureMode GetOfflinePageFeatureMode();
26 27
27 // Returns true if offline pages is enabled. 28 // Returns true if offline pages is enabled.
28 bool IsOfflinePagesEnabled(); 29 bool IsOfflinePagesEnabled();
29 30
31 // Returns true if offlining of recent pages (aka 'Last N pages') is enabled.
32 bool IsOffliningRecentPagesEnabled();
33
30 } // namespace offline_pages 34 } // namespace offline_pages
31 35
32 #endif // defined(OS_ANDROID)
33
34 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_FEATURE_H_ 36 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_FEATURE_H_
OLDNEW
« no previous file with comments | « components/offline_pages/BUILD.gn ('k') | components/offline_pages/offline_page_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698