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

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

Issue 1899433002: Update flags used by offline pages and bookmarks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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 "base/feature_list.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
11 namespace offline_pages { 11 namespace offline_pages {
12 12
13 extern const base::Feature kOfflineBookmarksFeature;
13 extern const base::Feature kOffliningRecentPagesFeature; 14 extern const base::Feature kOffliningRecentPagesFeature;
14 extern const base::Feature kOfflinePagesBackgroundLoadingFeature; 15 extern const base::Feature kOfflinePagesBackgroundLoadingFeature;
15 16
16 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.components.offlinepages 17 // Returns true if offline bookmarks is enabled.
17 enum class FeatureMode { 18 bool IsOfflineBookmarksEnabled();
18 // Offline pages feature is disabled.
19 DISABLED,
20 // Offline pages feature is enabled, showing bookmarks in UI strings.
21 ENABLED_AS_BOOKMARKS,
22 // Offline pages feature is enabled, showing saved pages in UI strings.
23 ENABLED_AS_SAVED_PAGES
24 };
25
26 // Returns the mode where Offline Pages feature is running.
27 FeatureMode GetOfflinePageFeatureMode();
28
29 // Returns true if offline pages is enabled.
30 bool IsOfflinePagesEnabled();
31 19
32 // Returns true if offlining of recent pages (aka 'Last N pages') is enabled. 20 // Returns true if offlining of recent pages (aka 'Last N pages') is enabled.
33 bool IsOffliningRecentPagesEnabled(); 21 bool IsOffliningRecentPagesEnabled();
34 22
35 // Returns true if saving offline pages in the background is enabled. 23 // Returns true if saving offline pages in the background is enabled.
36 bool IsOfflinePagesBackgroundLoadingEnabled(); 24 bool IsOfflinePagesBackgroundLoadingEnabled();
37 25
38 } // namespace offline_pages 26 } // namespace offline_pages
39 27
40 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_FEATURE_H_ 28 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_FEATURE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698