diff options
Diffstat (limited to 'webkit/plugins/ppapi/ppb_crypto_impl.cc')
-rw-r--r-- | webkit/plugins/ppapi/ppb_crypto_impl.cc | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/webkit/plugins/ppapi/ppb_crypto_impl.cc b/webkit/plugins/ppapi/ppb_crypto_impl.cc new file mode 100644 index 0000000..8f3a73b --- /dev/null +++ b/webkit/plugins/ppapi/ppb_crypto_impl.cc @@ -0,0 +1,28 @@ +// Copyright (c) 2011 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. + +#include "webkit/plugins/ppapi/ppb_crypto_impl.h" + +#include "ppapi/c/dev/ppb_crypto_dev.h" +#include "ppapi/shared_impl/crypto_impl.h" + +namespace webkit { +namespace ppapi { + +namespace { + +const PPB_Crypto_Dev ppb_crypto = { + &pp::shared_impl::CryptoImpl::GetRandomBytes +}; + +} // namespace + +// static +const PPB_Crypto_Dev* PPB_Crypto_Impl::GetInterface() { + return &ppb_crypto; +} + +} // namespace ppapi +} // namespace webkit + |