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

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

Issue 2068393002: Flag for Offline Page Sharing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolve merge conflict Created 4 years, 5 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 kOfflineBookmarksFeature;
14 extern const base::Feature kOffliningRecentPagesFeature; 14 extern const base::Feature kOffliningRecentPagesFeature;
15 extern const base::Feature kOfflinePagesBackgroundLoadingFeature; 15 extern const base::Feature kOfflinePagesBackgroundLoadingFeature;
16 extern const base::Feature kOfflinePagesCTFeature; 16 extern const base::Feature kOfflinePagesCTFeature;
17 extern const base::Feature kOfflinePagesSharingFeature;
17 18
18 // Returns true if offline pages, as result of one or more offline features 19 // Returns true if offline pages, as result of one or more offline features
19 // being enabled, is enabled. 20 // being enabled, is enabled.
20 bool IsOfflinePagesEnabled(); 21 bool IsOfflinePagesEnabled();
21 22
22 // Returns true if saving bookmarked pages for offline viewing is enabled. 23 // Returns true if saving bookmarked pages for offline viewing is enabled.
23 bool IsOfflineBookmarksEnabled(); 24 bool IsOfflineBookmarksEnabled();
24 25
25 // Returns true if offlining of recent pages (aka 'Last N pages') is enabled. 26 // Returns true if offlining of recent pages (aka 'Last N pages') is enabled.
26 bool IsOffliningRecentPagesEnabled(); 27 bool IsOffliningRecentPagesEnabled();
27 28
28 // Returns true if saving offline pages in the background is enabled. 29 // Returns true if saving offline pages in the background is enabled.
29 bool IsOfflinePagesBackgroundLoadingEnabled(); 30 bool IsOfflinePagesBackgroundLoadingEnabled();
30 31
31 // Returns true if offline CT features are enabled. See crbug.com/620421. 32 // Returns true if offline CT features are enabled. See crbug.com/620421.
32 bool IsOfflinePagesCTEnabled(); 33 bool IsOfflinePagesCTEnabled();
33 34
35 // Returns true if offline page sharing is enabled.
36 bool IsOfflinePagesSharingEnabled();
37
34 } // namespace offline_pages 38 } // namespace offline_pages
35 39
36 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_FEATURE_H_ 40 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_FEATURE_H_>>>> Flag for Offline
41 // Page Sharing
OLDNEW
« no previous file with comments | « chrome/browser/android/offline_pages/offline_page_bridge.cc ('k') | components/offline_pages/offline_page_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698