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

Unified Diff: chrome/browser/extensions/api/enterprise_certificates/enterprise_certificates_internal_api.h

Issue 214863002: Extension API enterprise.platformKeys. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Allow import of non-extractable keys. Created 6 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
Index: chrome/browser/extensions/api/enterprise_certificates/enterprise_certificates_internal_api.h
diff --git a/chrome/browser/extensions/api/enterprise_certificates/enterprise_certificates_internal_api.h b/chrome/browser/extensions/api/enterprise_certificates/enterprise_certificates_internal_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..3073e382ccb6243c4c32b2469e99be9a71fef510
--- /dev/null
+++ b/chrome/browser/extensions/api/enterprise_certificates/enterprise_certificates_internal_api.h
@@ -0,0 +1,34 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_EXTENSIONS_API_ENTERPRISE_CERTIFICATES_ENTERPRISE_CERTIFICATES_INTERNAL_API_H_
+#define CHROME_BROWSER_EXTENSIONS_API_ENTERPRISE_CERTIFICATES_ENTERPRISE_CERTIFICATES_INTERNAL_API_H_
+
+#include "base/compiler_specific.h"
+#include "chrome/browser/extensions/chrome_extension_function.h"
+#include "chrome/common/extensions/api/enterprise_certificates_internal.h"
+
+namespace net {
+class NSSCertDatabase;
+}
+
+namespace extensions {
+
+class ECIImport : public ChromeAsyncExtensionFunction {
+ protected:
+ virtual bool RunImpl() OVERRIDE;
+
+ private:
+ void DidGetCertDB(net::NSSCertDatabase* cert_db);
+
+ DECLARE_EXTENSION_FUNCTION(
+ "enterprise.certificatesInternal.importClientCertificate",
+ ENTERPRISE_CERTIFICATESINTERNAL_IMPORTCLIENTCERTIFICATE);
+};
+
+typedef ECIImport EnterpriseCertificatesInternalImportClientCertificateFunction;
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_ENTERPRISE_CERTIFICATES_ENTERPRISE_CERTIFICATES_INTERNAL_API_H_

Powered by Google App Engine
This is Rietveld 408576698