Index: net/ssl/ssl_platform_key_task_runner.h |
diff --git a/net/ssl/ssl_platform_key_task_runner.h b/net/ssl/ssl_platform_key_task_runner.h |
index 0c9b124f1fa3f891ae15f6f0c38d30aee0e45b85..de5188602a5f0460e29d162fcfb1e19435acdcda 100644 |
--- a/net/ssl/ssl_platform_key_task_runner.h |
+++ b/net/ssl/ssl_platform_key_task_runner.h |
@@ -6,27 +6,32 @@ |
#define NET_SSL_SSL_PLATFORM_KEY_TASK_RUNNER_H_ |
#include "base/macros.h" |
-#include "base/threading/sequenced_worker_pool.h" |
+#include "base/memory/ref_counted.h" |
+#include "base/threading/thread.h" |
+ |
+namespace { |
+class SingleThreadTaskRunner; |
Ryan Sleevi
2016/07/27 19:09:23
BUG: wrong namespace; should be base, but you've g
gab
2016/07/28 18:30:34
Oops, good eyes, done.
|
+} |
Ryan Sleevi
2016/07/27 19:09:23
STYLE: } // namespace base
gab
2016/07/28 18:30:34
I've been told (by danakj@) that for small fwd-dec
|
namespace net { |
-// Serialize all the private key operations on a single background |
-// thread to avoid problems with buggy smartcards. |
+// Serialize all the private key operations on a single background thread to |
+// avoid problems with buggy smartcards. Its underlying Thread is non-joinable |
+// and as such provides TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN semantics. |
class SSLPlatformKeyTaskRunner { |
public: |
SSLPlatformKeyTaskRunner(); |
~SSLPlatformKeyTaskRunner(); |
- scoped_refptr<base::SequencedTaskRunner> task_runner(); |
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner(); |
private: |
- scoped_refptr<base::SequencedWorkerPool> worker_pool_; |
- scoped_refptr<base::SequencedTaskRunner> task_runner_; |
+ base::Thread worker_thread_; |
DISALLOW_COPY_AND_ASSIGN(SSLPlatformKeyTaskRunner); |
}; |
-scoped_refptr<base::SequencedTaskRunner> GetSSLPlatformKeyTaskRunner(); |
+scoped_refptr<base::SingleThreadTaskRunner> GetSSLPlatformKeyTaskRunner(); |
} // namespace net |