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

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: json -> idl, use ChromeUIThreadExtFun, split key.js, ... 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..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_

Powered by Google App Engine
This is Rietveld 408576698