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..5759907e559baab7826d3edd90300a3ac759f484 |
--- /dev/null |
+++ b/chrome/browser/extensions/api/enterprise_platform_keys/token_method_nss.h |
@@ -0,0 +1,52 @@ |
+// 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 extensions { |
+ |
+namespace enterprise_platform_keys { |
+ |
+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_ |