| Index: chromeos/cert_loader.h
|
| diff --git a/chromeos/cert_loader.h b/chromeos/cert_loader.h
|
| index 69e31916447d916d4728c8bd9bd202d444e458c6..ec2d7ce2de3345fc552a7324da22541d2532d6a1 100644
|
| --- a/chromeos/cert_loader.h
|
| +++ b/chromeos/cert_loader.h
|
| @@ -66,12 +66,17 @@ class CHROMEOS_EXPORT CertLoader : public net::CertDatabase::Observer,
|
| static bool IsInitialized();
|
|
|
| // |crypto_task_runner| is the task runner that any synchronous crypto calls
|
| - // should be made from. e.g. in Chrome this is the IO thread. Must be called
|
| + // should be made from, e.g. in Chrome this is the IO thread. Must be called
|
| // after the thread is started. Certificate loading will not happen unless
|
| // this is set.
|
| void SetCryptoTaskRunner(
|
| const scoped_refptr<base::SequencedTaskRunner>& crypto_task_runner);
|
|
|
| + // Sets the task runner that any slow calls will be made from, e.g. calls
|
| + // to the NSS database. If not set, uses base::WorkerPool.
|
| + void SetSlowTaskRunnerForTest(
|
| + const scoped_refptr<base::SequencedTaskRunner>& task_runner);
|
| +
|
| void AddObserver(CertLoader::Observer* observer);
|
| void RemoveObserver(CertLoader::Observer* observer);
|
|
|
| @@ -167,6 +172,9 @@ class CHROMEOS_EXPORT CertLoader : public net::CertDatabase::Observer,
|
| // TaskRunner for crypto calls.
|
| scoped_refptr<base::SequencedTaskRunner> crypto_task_runner_;
|
|
|
| + // TaskRunner for other slow tasks. May be set in tests.
|
| + scoped_refptr<base::TaskRunner> slow_task_runner_for_test_;
|
| +
|
| // This factory should be used only for callbacks during TPMToken
|
| // initialization.
|
| base::WeakPtrFactory<CertLoader> initialize_token_factory_;
|
|
|