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

Unified Diff: net/base/origin_bound_cert_store.h

Issue 7585037: Add functionality to OriginBoundCertStore interface and implementations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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/base/origin_bound_cert_store.h
===================================================================
--- net/base/origin_bound_cert_store.h (revision 94628)
+++ net/base/origin_bound_cert_store.h (working copy)
@@ -21,6 +21,12 @@
class NET_API OriginBoundCertStore {
public:
+ struct OriginBoundCertInfo {
+ std::string origin;
+ std::string private_key;
+ std::string cert;
+ };
rkn 2011/08/09 20:58:24 The need for this struct suggests that we ought to
wtc 2011/08/10 21:35:59 Please document this struct.
+
virtual ~OriginBoundCertStore() {}
// TODO(rkn): Specify certificate type (RSA or DSA).
@@ -39,6 +45,16 @@
const std::string& private_key,
const std::string& cert) = 0;
wtc 2011/08/10 21:35:59 Add "and the corresponding private key" to the com
+ // Removes an origin bound cert from the store.
wtc 2011/08/10 21:35:59 The new methods probably should all return a succe
+ virtual void DeleteOriginBoundCert(const std::string& origin) = 0;
+
+ // Removes all origin bound certs from the store.
+ virtual void DeleteAll() = 0;
+
+ // Returns all origin bound certs.
+ virtual void GetAllOriginBoundCerts(
+ std::vector<OriginBoundCertInfo>* origin_bound_certs) = 0;
+
// Returns the number of certs in the store.
// Public only for unit testing.
virtual int GetCertCount() = 0;

Powered by Google App Engine
This is Rietveld 408576698