summaryrefslogtreecommitdiffstats
path: root/webkit/plugins/ppapi/ppb_crypto_impl.cc
blob: 8f3a73bd65c91accda52ec7b54ed95a88a549156 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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