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

Unified Diff: net/cert/cert_database.h

Issue 214863002: Extension API enterprise.platformKeys. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments. Splitted custom_binding, added comments... Created 6 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/cert/cert_database.h
diff --git a/net/cert/cert_database.h b/net/cert/cert_database.h
index 865d685097d691e763c156c8cc714b995016f22f..142af02150a5c21e52f43c9022f035465a8ae048 100644
--- a/net/cert/cert_database.h
+++ b/net/cert/cert_database.h
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+#include "net/base/net_errors.h"
#include "net/base/net_export.h"
#include "net/cert/x509_certificate.h"
@@ -58,12 +59,12 @@ class NET_EXPORT CertDatabase {
// Check whether this is a valid user cert that we have the private key for.
// Returns OK or a network error code such as ERR_CERT_CONTAINS_ERRORS.
- int CheckUserCert(X509Certificate* cert);
+ Error CheckUserCert(X509Certificate* cert);
// Store user (client) certificate. Assumes CheckUserCert has already passed.
// Returns OK, or ERR_ADD_USER_CERT_FAILED if there was a problem saving to
// the platform cert database, or possibly other network error codes.
- int AddUserCert(X509Certificate* cert);
+ Error AddUserCert(X509Certificate* cert);
// Registers |observer| to receive notifications of certificate changes. The
// thread on which this is called is the thread on which |observer| will be

Powered by Google App Engine
This is Rietveld 408576698