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

Side by Side Diff: ppapi/thunk/ppb_instance_thunk.cc

Issue 7362012: Remove untrusted scripting support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged Created 9 years, 5 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 | « ppapi/shared_impl/ppp_instance_combined.cc ('k') | ppapi/thunk/thunk.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "ppapi/thunk/thunk.h" 5 #include "ppapi/thunk/thunk.h"
6 #include "ppapi/thunk/enter.h" 6 #include "ppapi/thunk/enter.h"
7 #include "ppapi/thunk/ppb_instance_api.h" 7 #include "ppapi/thunk/ppb_instance_api.h"
8 #include "ppapi/thunk/resource_creation_api.h" 8 #include "ppapi/thunk/resource_creation_api.h"
9 9
10 namespace ppapi { 10 namespace ppapi {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 if (enter.failed()) 47 if (enter.failed())
48 return PP_MakeUndefined(); 48 return PP_MakeUndefined();
49 return enter.functions()->ExecuteScript(instance, script, exception); 49 return enter.functions()->ExecuteScript(instance, script, exception);
50 } 50 }
51 51
52 const PPB_Instance_1_0 g_ppb_instance_1_0_thunk = { 52 const PPB_Instance_1_0 g_ppb_instance_1_0_thunk = {
53 &BindGraphics, 53 &BindGraphics,
54 &IsFullFrame 54 &IsFullFrame
55 }; 55 };
56 56
57 const PPB_Instance_0_4 g_ppb_instance_0_4_thunk = {
58 &GetWindowObject,
59 &GetOwnerElementObject,
60 &BindGraphics,
61 &IsFullFrame,
62 &ExecuteScript
63 };
64
65 const PPB_Instance_Private g_ppb_instance_private_thunk = { 57 const PPB_Instance_Private g_ppb_instance_private_thunk = {
66 &GetWindowObject, 58 &GetWindowObject,
67 &GetOwnerElementObject, 59 &GetOwnerElementObject,
68 &ExecuteScript 60 &ExecuteScript
69 }; 61 };
70 62
71 } // namespace 63 } // namespace
72 64
73 const PPB_Instance_0_4* GetPPB_Instance_0_4_Thunk() {
74 return &g_ppb_instance_0_4_thunk;
75 }
76 const PPB_Instance_1_0* GetPPB_Instance_1_0_Thunk() { 65 const PPB_Instance_1_0* GetPPB_Instance_1_0_Thunk() {
77 return &g_ppb_instance_1_0_thunk; 66 return &g_ppb_instance_1_0_thunk;
78 } 67 }
79 const PPB_Instance_Private* GetPPB_Instance_Private_Thunk() { 68 const PPB_Instance_Private* GetPPB_Instance_Private_Thunk() {
80 return &g_ppb_instance_private_thunk; 69 return &g_ppb_instance_private_thunk;
81 } 70 }
82 71
83 } // namespace thunk 72 } // namespace thunk
84 } // namespace ppapi 73 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/shared_impl/ppp_instance_combined.cc ('k') | ppapi/thunk/thunk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698