| Index: components/os_crypt/os_crypt.h
|
| diff --git a/components/os_crypt/os_crypt.h b/components/os_crypt/os_crypt.h
|
| index b03d72608d6bbee16dba5b375a4de6e45e8cf7d1..b17abd1dd22f01a74fad8f1f5db8ed518e4478c1 100644
|
| --- a/components/os_crypt/os_crypt.h
|
| +++ b/components/os_crypt/os_crypt.h
|
| @@ -17,6 +17,10 @@
|
| #include "components/os_crypt/key_storage_linux.h"
|
| #endif // defined(OS_LINUX) && !defined(OS_CHROMEOS)
|
|
|
| +namespace base {
|
| +class FilePath;
|
| +}
|
| +
|
| // The OSCrypt class gives access to simple encryption and decryption of
|
| // strings. Note that on Mac, access to the system Keychain is required and
|
| // these calls can block the current thread to collect user input. The same is
|
| @@ -39,6 +43,13 @@ class OSCrypt {
|
| static void SetMainThreadRunner(
|
| scoped_refptr<base::SingleThreadTaskRunner> main_thread_runner);
|
|
|
| + // Enable the feature where we determine if we should try a backend via a
|
| + // preference file.
|
| + static void ShouldUsePreference(bool should_use_preference);
|
| +
|
| + // Set the folder, where OSCrypt will check for its preference file.
|
| + static void SetUserDataPath(const base::FilePath& path);
|
| +
|
| // Returns true iff the real secret key (not hardcoded one) is available.
|
| static bool IsEncryptionAvailable();
|
| #endif // defined(OS_LINUX) && !defined(OS_CHROMEOS)
|
|
|