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

Unified Diff: chrome/browser/extensions/api/enterprise_platform_keys/token_method_nss.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: chrome/browser/extensions/api/enterprise_platform_keys/token_method_nss.h
diff --git a/chrome/browser/extensions/api/enterprise_platform_keys/token_method_nss.h b/chrome/browser/extensions/api/enterprise_platform_keys/token_method_nss.h
new file mode 100644
index 0000000000000000000000000000000000000000..228b286d65acac4a8fcd4f949acc6c3f64a36663
--- /dev/null
+++ b/chrome/browser/extensions/api/enterprise_platform_keys/token_method_nss.h
@@ -0,0 +1,58 @@
+// 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_PLATFORM_KEYS_TOKEN_METHOD_NSS_H_
+#define CHROME_BROWSER_EXTENSIONS_API_ENTERPRISE_PLATFORM_KEYS_TOKEN_METHOD_NSS_H_
+
+#include <vector>
+
+#include "base/compiler_specific.h"
+#include "base/macros.h"
+#include "base/memory/weak_ptr.h"
+#include "chrome/common/extensions/api/enterprise_platform_keys.h"
+#include "chrome/common/extensions/api/enterprise_platform_keys_internal.h"
+#include "crypto/scoped_nss_types.h"
+
+namespace net {
+class NSSCertDatabase;
+class X509Certificate;
+typedef std::vector<scoped_refptr<X509Certificate> > CertificateList;
+}
+
+namespace extensions {
+
+namespace enterprise_platform_keys {
not at google - send to devlin 2014/05/05 21:09:24 same comment re namespace, and why does this funct
pneubeck (no reviews) 2014/05/05 21:28:23 It's the NSS specific implementation (vs. OpenSSL)
not at google - send to devlin 2014/05/07 00:00:12 This doesn't look right, these are all effectively
pneubeck (no reviews) 2014/05/07 21:44:19 The reason was that I didn't dare to do such a cra
+
+class TokenMethodExtensionFunction;
+
+namespace nss {
+
+void Generate(
+ scoped_refptr<TokenMethodExtensionFunction> func,
+ scoped_ptr<api::enterprise_platform_keys_internal::GenerateKey::Params>
+ params);
+
+void Sign(
+ scoped_refptr<TokenMethodExtensionFunction> func,
+ scoped_ptr<api::enterprise_platform_keys_internal::Sign::Params> params);
+
+void GetCerts(
+ scoped_refptr<TokenMethodExtensionFunction> func,
+ scoped_ptr<api::enterprise_platform_keys::GetCertificates::Params> params);
+
+void Import(scoped_refptr<TokenMethodExtensionFunction> func,
+ scoped_ptr<api::enterprise_platform_keys::ImportCertificate::Params>
+ params);
+
+void Remove(scoped_refptr<TokenMethodExtensionFunction> func,
+ scoped_ptr<api::enterprise_platform_keys::RemoveCertificate::Params>
+ params);
+
+} // namespace nss
+
+} // namespace enterprise_platform_keys
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_ENTERPRISE_PLATFORM_KEYS_TOKEN_METHOD_NSS_H_

Powered by Google App Engine
This is Rietveld 408576698