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

Unified Diff: chrome/common/extensions/api/enterprise_certificates.idl

Issue 214863002: Extension API enterprise.platformKeys. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed to OO-style API with Token object. 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/common/extensions/api/enterprise_certificates.idl
diff --git a/chrome/common/extensions/api/enterprise_certificates.idl b/chrome/common/extensions/api/enterprise_certificates.idl
new file mode 100644
index 0000000000000000000000000000000000000000..b9289128242c6fe4e1b1f7fe1456a7dea2f060ee
--- /dev/null
+++ b/chrome/common/extensions/api/enterprise_certificates.idl
@@ -0,0 +1,24 @@
+// 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.
+
+// API for certificate management.
+[nodoc=true, platforms=("chromeos")]
+namespace enterprise.certificates {
+ callback DoneCallback = void ();
+ callback GetClientCertificatesCallback = void(ArrayBuffer[] certificates);
+ callback GetTokensCallback =
+ void (Token[] certificates);
+
+ [noinline_doc] dictionary Token {
+ DOMString name;
+ static void importClientCertificate([instanceOf = Key] object key,
+ ArrayBuffer certificate,
+ optional DoneCallback callback);
+ static void getClientCertificates(GetClientCertificatesCallback callback);
+ };
+
+ interface Functions {
+ [nocompile] static void getTokens(GetTokensCallback callback);
+ };
+};

Powered by Google App Engine
This is Rietveld 408576698