OLD | NEW |
---|---|
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_ |
OLD | NEW |