| 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..6afd99fcedb373277366a280a03acb91e6158e70
|
| --- /dev/null
|
| +++ b/chrome/renderer/extensions/enterprise_platform_keys_natives.h
|
| @@ -0,0 +1,34 @@
|
| +// 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:
|
| + // Normalizes algorithm parameters, and then validates the expected parameters
|
| + // for the algorithm/operation combination.
|
| + // Expects the following arguments in |call_info|:
|
| + // |parameters|: An object containing the parameters to normalize.
|
| + // |operation|: A string describing the operation. Supported operations are
|
| + // "GenerateKey", "Sign" and "Verify".
|
| + // Returns the normalized dictionary on success, or null if some required
|
| + // parameters are missing or not supported.
|
| + void NormalizeAlgorithm(const v8::FunctionCallbackInfo<v8::Value>& call_info);
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(EnterprisePlatformKeysNatives);
|
| +};
|
| +
|
| +} // namespace extensions
|
| +
|
| +#endif // CHROME_RENDERER_EXTENSIONS_ENTERPRISE_PLATFORM_KEYS_NATIVES_H_
|
|
|