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

Unified Diff: ppapi/shared_impl/crypto_impl.cc

Issue 8849003: Rename the shared_impl resource files to give them more regular names. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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
« no previous file with comments | « ppapi/shared_impl/char_set_impl.cc ('k') | ppapi/shared_impl/file_ref_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/crypto_impl.cc
===================================================================
--- ppapi/shared_impl/crypto_impl.cc (revision 113419)
+++ ppapi/shared_impl/crypto_impl.cc (working copy)
@@ -1,36 +0,0 @@
-// 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 "base/rand_util.h"
-#include "ppapi/c/dev/ppb_crypto_dev.h"
-#include "ppapi/thunk/thunk.h"
-
-// The crypto interface doesn't have a normal C -> C++ thunk since it doesn't
-// actually have any proxy wrapping or associated objects; it's just a call
-// into base. So we implement the entire interface here, using the thunk
-// namespace so it magically gets hooked up in the proper places.
-
-namespace ppapi {
-
-namespace {
-
-void GetRandomBytes(char* buffer, uint32_t num_bytes) {
- base::RandBytes(buffer, num_bytes);
-}
-
-const PPB_Crypto_Dev crypto_interface = {
- &GetRandomBytes
-};
-
-} // namespace
-
-namespace thunk {
-
-PPAPI_THUNK_EXPORT const PPB_Crypto_Dev* GetPPB_Crypto_Dev_Thunk() {
- return &crypto_interface;
-}
-
-} // namespace thunk
-
-} // namespace ppapi
« no previous file with comments | « ppapi/shared_impl/char_set_impl.cc ('k') | ppapi/shared_impl/file_ref_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698