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

Unified Diff: net/ssl/threaded_ssl_private_key.h

Issue 2822283002: Remove SSLPrivateKey metadata hooks. (Closed)
Patch Set: emaxx comment Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/ssl/test_ssl_private_key.cc ('k') | net/ssl/threaded_ssl_private_key.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ssl/threaded_ssl_private_key.h
diff --git a/net/ssl/threaded_ssl_private_key.h b/net/ssl/threaded_ssl_private_key.h
index e2f79aa0b6be8dfb08c4438242067bfab73d531c..da18157920603f06ae5efa28c0f1f94d7f46e009 100644
--- a/net/ssl/threaded_ssl_private_key.h
+++ b/net/ssl/threaded_ssl_private_key.h
@@ -34,11 +34,9 @@ class ThreadedSSLPrivateKey : public SSLPrivateKey {
Delegate() {}
virtual ~Delegate() {}
- // These methods behave as those of the same name on SSLPrivateKey. They
- // must be callable on any thread.
- virtual Type GetType() = 0;
+ // Returns the digests that are supported by the key in decreasing
+ // preference. This method must be callable on any thread.
virtual std::vector<SSLPrivateKey::Hash> GetDigestPreferences() = 0;
- virtual size_t GetMaxSignatureLengthInBytes() = 0;
// Signs |input| as a digest of type |hash|. On success it returns OK and
// sets |signature| to the resulting signature. Otherwise it returns a net
@@ -57,9 +55,7 @@ class ThreadedSSLPrivateKey : public SSLPrivateKey {
scoped_refptr<base::SingleThreadTaskRunner> task_runner);
// SSLPrivateKey implementation.
- Type GetType() override;
std::vector<SSLPrivateKey::Hash> GetDigestPreferences() override;
- size_t GetMaxSignatureLengthInBytes() override;
void SignDigest(Hash hash,
const base::StringPiece& input,
const SignCallback& callback) override;
« no previous file with comments | « net/ssl/test_ssl_private_key.cc ('k') | net/ssl/threaded_ssl_private_key.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698