blob: 31b9eaec0064086c70a19fdf40802af45d7903ef [file] [log] [blame]
// Copyright (c) 2010 The Chromium OS 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 ENTD_TPM_H_
#define ENTD_TPM_H_
#include "entd/scriptable.h"
namespace entd {
class Tpm : public Scriptable<Tpm> {
public:
static const std::string class_name() { return "entd.Tpm"; };
v8::Handle<v8::Value> Construct(const v8::Arguments& args) {
return ThrowNoScriptableConstructor();
}
bool Initialize();
static bool InitializeTemplate(v8::Handle<v8::FunctionTemplate> ctor_t);
static v8::Handle<v8::Value> IsEnabled(v8::Local<v8::String> property,
const v8::AccessorInfo& info);
static v8::Handle<v8::Value> IsReady(v8::Local<v8::String> property,
const v8::AccessorInfo& info);
static v8::Handle<v8::Value> IsOwned(v8::Local<v8::String> property,
const v8::AccessorInfo& info);
static v8::Handle<v8::Value> IsBeingOwned(v8::Local<v8::String> property,
const v8::AccessorInfo& info);
static v8::Handle<v8::Value> GetStatusString(v8::Local<v8::String> property,
const v8::AccessorInfo& info);
static v8::Handle<v8::Value> IsTokenReady(v8::Local<v8::String> property,
const v8::AccessorInfo& info);
static bool cryptohome_init_pkcs11;
};
} // namespace entd
#endif // ENTD_BROWSER_H_