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

Side by Side Diff: chrome/renderer/pepper/chrome_ppapi_interfaces.cc

Issue 14683004: Check that the PNaCl cache hash is truly derived from the bitcode content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 7 years, 7 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_renderer.gypi ('k') | chrome/renderer/pepper/ppb_nacl_hash_private_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/renderer/pepper/chrome_ppapi_interfaces.h" 5 #include "chrome/renderer/pepper/chrome_ppapi_interfaces.h"
6 6
7 #include "chrome/renderer/pepper/ppb_nacl_hash_private_impl.h"
7 #include "chrome/renderer/pepper/ppb_nacl_private_impl.h" 8 #include "chrome/renderer/pepper/ppb_nacl_private_impl.h"
8 #include "chrome/renderer/pepper/ppb_pdf_impl.h" 9 #include "chrome/renderer/pepper/ppb_pdf_impl.h"
10 #include "ppapi/c/private/ppb_nacl_hash_private.h"
9 #include "ppapi/c/private/ppb_nacl_private.h" 11 #include "ppapi/c/private/ppb_nacl_private.h"
10 #include "ppapi/c/private/ppb_pdf.h" 12 #include "ppapi/c/private/ppb_pdf.h"
11 #include "webkit/plugins/ppapi/ppapi_interface_factory.h" 13 #include "webkit/plugins/ppapi/ppapi_interface_factory.h"
12 14
13 namespace chrome { 15 namespace chrome {
14 16
15 const void* ChromePPAPIInterfaceFactory(const std::string& interface_name) { 17 const void* ChromePPAPIInterfaceFactory(const std::string& interface_name) {
16 #if !defined(DISABLE_NACL) 18 #if !defined(DISABLE_NACL)
19 if (interface_name == PPB_NACL_HASH_PRIVATE_INTERFACE)
20 return PPB_NaCl_Hash_Private_Impl::GetInterface();
17 if (interface_name == PPB_NACL_PRIVATE_INTERFACE) 21 if (interface_name == PPB_NACL_PRIVATE_INTERFACE)
18 return PPB_NaCl_Private_Impl::GetInterface(); 22 return PPB_NaCl_Private_Impl::GetInterface();
19 #endif // DISABLE_NACL 23 #endif // DISABLE_NACL
20 if (interface_name == PPB_PDF_INTERFACE) 24 if (interface_name == PPB_PDF_INTERFACE)
21 return PPB_PDF_Impl::GetInterface(); 25 return PPB_PDF_Impl::GetInterface();
22 return NULL; 26 return NULL;
23 } 27 }
24 28
25 } // namespace chrome 29 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/chrome_renderer.gypi ('k') | chrome/renderer/pepper/ppb_nacl_hash_private_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698