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

Unified Diff: chrome/renderer/extensions/enterprise_platform_keys_natives.h

Issue 298073009: Reuse WebCrypto's normalizeCryptoAlgorithm in enterprise.platformKeys. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/renderer/extensions/enterprise_platform_keys_natives.h
diff --git a/chrome/renderer/extensions/enterprise_platform_keys_natives.h b/chrome/renderer/extensions/enterprise_platform_keys_natives.h
new file mode 100644
index 0000000000000000000000000000000000000000..5ebcf062db2859db4b9bcdbd600a04c8b04420c4
--- /dev/null
+++ b/chrome/renderer/extensions/enterprise_platform_keys_natives.h
@@ -0,0 +1,26 @@
+// 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_RENDERER_EXTENSIONS_ENTERPRISE_PLATFORM_KEYS_NATIVES_H_
+#define CHROME_RENDERER_EXTENSIONS_ENTERPRISE_PLATFORM_KEYS_NATIVES_H_
+
+#include "extensions/renderer/object_backed_native_handler.h"
+#include "v8/include/v8.h"
+
+namespace extensions {
+class ScriptContext;
+
+class EnterprisePlatformKeysNatives : public ObjectBackedNativeHandler {
+ public:
+ explicit EnterprisePlatformKeysNatives(ScriptContext* context);
+
+ private:
+ void NormalizeAlgorithm(const v8::FunctionCallbackInfo<v8::Value>& call_info);
not at google - send to devlin 2014/05/29 15:06:57 it's nice to document what the expected parameters
pneubeck (no reviews) 2014/06/02 14:01:55 Done.
+
+ DISALLOW_COPY_AND_ASSIGN(EnterprisePlatformKeysNatives);
+};
+
+} // namespace extensions
+
+#endif // CHROME_RENDERER_EXTENSIONS_ENTERPRISE_PLATFORM_KEYS_NATIVES_H_

Powered by Google App Engine
This is Rietveld 408576698