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

Unified Diff: net/ssl/default_channel_id_store.h

Issue 1076063002: Remove certificates from Channel ID (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 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
Index: net/ssl/default_channel_id_store.h
diff --git a/net/ssl/default_channel_id_store.h b/net/ssl/default_channel_id_store.h
index 9b986373226ebe3aa5f6554ffb7c560c810c796b..9027c1dab9b2c29f12177562af29940aeeb28151 100644
--- a/net/ssl/default_channel_id_store.h
+++ b/net/ssl/default_channel_id_store.h
@@ -18,6 +18,10 @@
#include "net/base/net_export.h"
#include "net/ssl/channel_id_store.h"
+namespace crypto {
+class ECPrivateKey;
+}
Ryan Sleevi 2015/05/08 23:43:14 } // namespace crypto
nharper 2015/05/11 21:26:44 Done.
+
namespace net {
// This class is the system for storing and retrieving server bound certs.
@@ -45,15 +49,9 @@ class NET_EXPORT DefaultChannelIDStore : public ChannelIDStore {
// ChannelIDStore implementation.
int GetChannelID(const std::string& server_identifier,
- base::Time* expiration_time,
- std::string* private_key_result,
- std::string* cert_result,
+ scoped_ptr<crypto::ECPrivateKey>* key_result,
const GetChannelIDCallback& callback) override;
- void SetChannelID(const std::string& server_identifier,
- base::Time creation_time,
- base::Time expiration_time,
- const std::string& private_key,
- const std::string& cert) override;
+ void SetChannelID(scoped_ptr<ChannelID> channel_id) override;
void DeleteChannelID(const std::string& server_identifier,
const base::Closure& callback) override;
void DeleteAllCreatedBetween(base::Time delete_begin,
@@ -100,12 +98,7 @@ class NET_EXPORT DefaultChannelIDStore : public ChannelIDStore {
// Syncronous methods which do the actual work. Can only be called after
// initialization is complete.
- void SyncSetChannelID(
- const std::string& server_identifier,
- base::Time creation_time,
- base::Time expiration_time,
- const std::string& private_key,
- const std::string& cert);
+ void SyncSetChannelID(scoped_ptr<ChannelID> channel_id);
void SyncDeleteChannelID(const std::string& server_identifier);
void SyncDeleteAllCreatedBetween(base::Time delete_begin,
base::Time delete_end);
@@ -122,11 +115,9 @@ class NET_EXPORT DefaultChannelIDStore : public ChannelIDStore {
// is not NULL.
void InternalDeleteChannelID(const std::string& server);
- // Takes ownership of *channel_id.
- // Adds the channel id for the specified server to the in-memory store.
- // Deletes it from |store_| if |store_| is not NULL.
- void InternalInsertChannelID(const std::string& server_identifier,
- ChannelID* channel_id);
+ // Adds the channel id to the in-memory store and adds it to |store_| if
+ // |store_| is not NULL.
+ void InternalInsertChannelID(scoped_ptr<ChannelID> channel_id);
// Indicates whether the channel id store has been initialized. This happens
// lazily in InitIfNecessary().

Powered by Google App Engine
This is Rietveld 408576698