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

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

Issue 1422573008: Plumbing SSLPrivateKey (//net) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing un-needed forward decl. Created 5 years, 1 month 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
« no previous file with comments | « net/ssl/ssl_platform_key_nss.cc ('k') | net/ssl/ssl_platform_key_task_runner.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef NET_SSL_SSL_PLATFORM_KEY_TASK_RUNNER_H_
6 #define NET_SSL_SSL_PLATFORM_KEY_TASK_RUNNER_H_
7
8 #include "base/macros.h"
9 #include "base/threading/sequenced_worker_pool.h"
10
11 namespace net {
12
13 // Serialize all the private key operations on a single background
14 // thread to avoid problems with buggy smartcards.
15 class SSLPlatformKeyTaskRunner {
16 public:
17 SSLPlatformKeyTaskRunner();
18 ~SSLPlatformKeyTaskRunner();
19
20 scoped_refptr<base::SequencedTaskRunner> task_runner();
21
22 private:
23 scoped_refptr<base::SequencedWorkerPool> worker_pool_;
24 scoped_refptr<base::SequencedTaskRunner> task_runner_;
25
26 DISALLOW_COPY_AND_ASSIGN(SSLPlatformKeyTaskRunner);
27 };
28
29 scoped_refptr<base::SequencedTaskRunner> GetSSLPlatformKeyTaskRunner();
30
31 } // namespace net
32
33 #endif // NET_SSL_SSL_PLATFORM_KEY_TASK_RUNNER_H_
OLDNEW
« no previous file with comments | « net/ssl/ssl_platform_key_nss.cc ('k') | net/ssl/ssl_platform_key_task_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698