| 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 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 // This file can be empty. Its purpose is to contain the relatively short lived | 10 // This file can be empty. Its purpose is to contain the relatively short lived |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 // only whether the trial state will be checked in the default state. | 25 // only whether the trial state will be checked in the default state. |
| 26 void SetWKWebViewTrialEligibility(bool eligible); | 26 void SetWKWebViewTrialEligibility(bool eligible); |
| 27 | 27 |
| 28 // Whether the lru snapshot cache experiment is enabled. | 28 // Whether the lru snapshot cache experiment is enabled. |
| 29 bool IsLRUSnapshotCacheEnabled(); | 29 bool IsLRUSnapshotCacheEnabled(); |
| 30 | 30 |
| 31 // Whether the app uses WKWebView instead of UIWebView. | 31 // Whether the app uses WKWebView instead of UIWebView. |
| 32 // The returned value will not change within a given session. | 32 // The returned value will not change within a given session. |
| 33 bool IsWKWebViewEnabled(); | 33 bool IsWKWebViewEnabled(); |
| 34 | 34 |
| 35 // Whether the user would be put into a control group for the WKWebView |
| 36 // experiment assuming they were eligible. Calling this will *not* activate a |
| 37 // trial, so is safe to call without checking eligibility. |
| 38 bool IsTargetedToWKWebViewExperimentControlGroup(); |
| 39 |
| 40 // Whether the user is part of a control group for the WKWebView experiment. |
| 41 bool IsInWKWebViewExperimentControlGroup(); |
| 42 |
| 35 // Returns a string containing extra params that should be sent along with | 43 // Returns a string containing extra params that should be sent along with |
| 36 // omnibox search requests. The returned value contains a leading "&". | 44 // omnibox search requests. The returned value contains a leading "&". |
| 37 std::string GetWKWebViewSearchParams(); | 45 std::string GetWKWebViewSearchParams(); |
| 38 | 46 |
| 39 // Whether keyboard commands are supported. | 47 // Whether keyboard commands are supported. |
| 40 bool AreKeyboardCommandsEnabled(); | 48 bool AreKeyboardCommandsEnabled(); |
| 41 | 49 |
| 42 // Whether viewing and copying passwords is enabled. | 50 // Whether viewing and copying passwords is enabled. |
| 43 bool IsViewCopyPasswordsEnabled(); | 51 bool IsViewCopyPasswordsEnabled(); |
| 44 | 52 |
| 45 // Whether password generation is enabled. | 53 // Whether password generation is enabled. |
| 46 bool IsPasswordGenerationEnabled(); | 54 bool IsPasswordGenerationEnabled(); |
| 47 | 55 |
| 48 // Whether password generation fields are determined using local heuristics | 56 // Whether password generation fields are determined using local heuristics |
| 49 // only. | 57 // only. |
| 50 bool UseOnlyLocalHeuristicsForPasswordGeneration(); | 58 bool UseOnlyLocalHeuristicsForPasswordGeneration(); |
| 51 | 59 |
| 52 } // namespace experimental_flags | 60 } // namespace experimental_flags |
| 53 | 61 |
| 54 #endif // IOS_CHROME_BROWSER_EXPERIMENTAL_FLAGS_H_ | 62 #endif // IOS_CHROME_BROWSER_EXPERIMENTAL_FLAGS_H_ |
| OLD | NEW |