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

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

Issue 1772233003: Flag for Background Loading of Offline Pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #if defined(OS_ANDROID) 10 #if defined(OS_ANDROID)
11 11
12 namespace offline_pages { 12 namespace offline_pages {
13 13
14 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.components.offlinepages 14 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.components.offlinepages
15 enum class FeatureMode { 15 enum class FeatureMode {
16 // Offline pages feature is disabled. 16 // Offline pages feature is disabled.
17 DISABLED, 17 DISABLED,
18 // Offline pages feature is enabled, showing bookmarks in UI strings. 18 // Offline pages feature is enabled, showing bookmarks in UI strings.
19 ENABLED_AS_BOOKMARKS, 19 ENABLED_AS_BOOKMARKS,
20 // Offline pages feature is enabled, showing saved pages in UI strings. 20 // Offline pages feature is enabled, showing saved pages in UI strings.
21 ENABLED_AS_SAVED_PAGES 21 ENABLED_AS_SAVED_PAGES
22 }; 22 };
23 23
24 // Returns the mode where Offline Pages feature is running. 24 // Returns the mode where Offline Pages feature is running.
25 FeatureMode GetOfflinePageFeatureMode(); 25 FeatureMode GetOfflinePageFeatureMode();
26 26
27 // Returns true if offline pages is enabled. 27 // Returns true if offline pages is enabled.
28 bool IsOfflinePagesEnabled(); 28 bool IsOfflinePagesEnabled();
29 29
30 bool IsOfflinePagesBackgroundLoadingEnabled();
fgorski 2016/03/09 18:00:04 document
Pete Williamson 2016/03/09 20:36:32 Done.
31
30 } // namespace offline_pages 32 } // namespace offline_pages
31 33
32 #endif // defined(OS_ANDROID) 34 #endif // defined(OS_ANDROID)
33 35
34 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_FEATURE_H_ 36 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_FEATURE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698