OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | |
davidben
2015/09/25 20:10:12
Some of the older files still have the (c) sign, b
svaldez
2015/09/28 16:54:53
Done.
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "net/ssl/ssl_platform_key_task_runner.h" | |
6 | |
7 namespace net { | |
8 | |
9 SSLPlatformKeyTaskRunner::SSLPlatformKeyTaskRunner() { | |
10 // Serialize all the private key operations on a single background | |
11 // thread to avoid problems with buggy smartcards. | |
davidben
2015/09/25 20:10:12
I'd probably put a comment of this sort into the h
svaldez
2015/09/28 16:54:53
Done.
| |
12 worker_pool_ = new base::SequencedWorkerPool(1, "Platform Key Thread"); | |
13 task_runner_ = worker_pool_->GetSequencedTaskRunnerWithShutdownBehavior( | |
14 worker_pool_->GetSequenceToken(), | |
15 base::SequencedWorkerPool::CONTINUE_ON_SHUTDOWN); | |
16 } | |
17 | |
18 SSLPlatformKeyTaskRunner::~SSLPlatformKeyTaskRunner() {} | |
19 | |
20 scoped_refptr<base::SequencedTaskRunner> | |
21 SSLPlatformKeyTaskRunner::task_runner() { | |
22 return task_runner_; | |
23 } | |
24 | |
25 } // namespace net | |
OLD | NEW |