Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(583)

Side by Side Diff: net/ssl/ssl_platform_key_task_runner.cc

Issue 1304143010: Plumbing SSLPrivateKey Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698