| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 IOS_CHROME_BROWSER_EXPERIMENTAL_FLAGS_H_ | 5 #ifndef IOS_CHROME_BROWSER_EXPERIMENTAL_FLAGS_H_ |
| 6 #define IOS_CHROME_BROWSER_EXPERIMENTAL_FLAGS_H_ | 6 #define IOS_CHROME_BROWSER_EXPERIMENTAL_FLAGS_H_ |
| 7 | 7 |
| 8 // This file can be empty. Its purpose is to contain the relatively short lived | 8 // This file can be empty. Its purpose is to contain the relatively short lived |
| 9 // declarations required for experimental flags. | 9 // declarations required for experimental flags. |
| 10 | 10 |
| 11 namespace experimental_flags { | 11 namespace experimental_flags { |
| 12 | 12 |
| 13 // Whether background crash report upload should generate a local notification. | 13 // Whether background crash report upload should generate a local notification. |
| 14 bool IsAlertOnBackgroundUploadEnabled(); | 14 bool IsAlertOnBackgroundUploadEnabled(); |
| 15 | 15 |
| 16 // Whether the new bookmark collection experience is enabled. | 16 // Whether the new bookmark collection experience is enabled. |
| 17 bool IsBookmarkCollectionEnabled(); | 17 bool IsBookmarkCollectionEnabled(); |
| 18 | 18 |
| 19 // Sets whether or not the field trial for WKWebView should be enabled. This | 19 // Sets whether or not the field trial for WKWebView should be enabled. This |
| 20 // must be called at most once, and before IsWKWebViewEnabled. If this is never | 20 // must be called at most once, and before IsWKWebViewEnabled. If this is never |
| 21 // called, IsWKWebViewEnabled will assume ineligibility. | 21 // called, IsWKWebViewEnabled will assume ineligibility. |
| 22 // Note that an explicit command line flag will ignore this setting; it controls | 22 // Note that an explicit command line flag will ignore this setting; it controls |
| 23 // only whether the trial state will be checked in the default state. | 23 // only whether the trial state will be checked in the default state. |
| 24 void SetWKWebViewTrialEligibility(bool eligible); | 24 void SetWKWebViewTrialEligibility(bool eligible); |
| 25 | 25 |
| 26 // Whether the lru snapshot cache experiment is enabled. |
| 27 bool IsLRUSnapshotCacheEnabled(); |
| 28 |
| 26 // Whether the app uses WKWebView instead of UIWebView. | 29 // Whether the app uses WKWebView instead of UIWebView. |
| 27 // The returned value will not change within a given session. | 30 // The returned value will not change within a given session. |
| 28 bool IsWKWebViewEnabled(); | 31 bool IsWKWebViewEnabled(); |
| 29 | 32 |
| 30 // Whether keyboard commands are supported. | 33 // Whether keyboard commands are supported. |
| 31 bool AreKeyboardCommandsEnabled(); | 34 bool AreKeyboardCommandsEnabled(); |
| 32 | 35 |
| 33 // Whether viewing and copying passwords is enabled. | 36 // Whether viewing and copying passwords is enabled. |
| 34 bool IsViewCopyPasswordsEnabled(); | 37 bool IsViewCopyPasswordsEnabled(); |
| 35 | 38 |
| 36 } // namespace experimental_flags | 39 } // namespace experimental_flags |
| 37 | 40 |
| 38 #endif // IOS_CHROME_BROWSER_EXPERIMENTAL_FLAGS_H_ | 41 #endif // IOS_CHROME_BROWSER_EXPERIMENTAL_FLAGS_H_ |
| OLD | NEW |