summaryrefslogtreecommitdiffstats
path: root/ppapi/thunk/ppb_instance_thunk.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-10 17:23:57 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-10 17:23:57 +0000
commit0346023c3a4180f8cf67d4e825beb87bdbd98f73 (patch)
tree333733068c017be1aa53e0af945c0a0cecc6318d /ppapi/thunk/ppb_instance_thunk.cc
parentcf58c966ebdca1fcf2adbbe4a2f5bad875a8382a (diff)
downloadchromium_src-0346023c3a4180f8cf67d4e825beb87bdbd98f73.zip
chromium_src-0346023c3a4180f8cf67d4e825beb87bdbd98f73.tar.gz
chromium_src-0346023c3a4180f8cf67d4e825beb87bdbd98f73.tar.bz2
Convert URLUtil to the thunk system.
This removes some duplicate code between the proxy and the impl. Review URL: http://codereview.chromium.org/8159012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104741 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/thunk/ppb_instance_thunk.cc')
-rw-r--r--ppapi/thunk/ppb_instance_thunk.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/ppapi/thunk/ppb_instance_thunk.cc b/ppapi/thunk/ppb_instance_thunk.cc
index 9cc9bd5..07951bc 100644
--- a/ppapi/thunk/ppb_instance_thunk.cc
+++ b/ppapi/thunk/ppb_instance_thunk.cc
@@ -13,28 +13,28 @@ namespace thunk {
namespace {
PP_Var GetWindowObject(PP_Instance instance) {
- EnterFunction<PPB_Instance_FunctionAPI> enter(instance, true);
+ EnterInstance enter(instance);
if (enter.failed())
return PP_MakeUndefined();
return enter.functions()->GetWindowObject(instance);
}
PP_Var GetOwnerElementObject(PP_Instance instance) {
- EnterFunction<PPB_Instance_FunctionAPI> enter(instance, true);
+ EnterInstance enter(instance);
if (enter.failed())
return PP_MakeUndefined();
return enter.functions()->GetOwnerElementObject(instance);
}
PP_Bool BindGraphics(PP_Instance instance, PP_Resource graphics_id) {
- EnterFunction<PPB_Instance_FunctionAPI> enter(instance, true);
+ EnterInstance enter(instance);
if (enter.failed())
return PP_FALSE;
return enter.functions()->BindGraphics(instance, graphics_id);
}
PP_Bool IsFullFrame(PP_Instance instance) {
- EnterFunction<PPB_Instance_FunctionAPI> enter(instance, true);
+ EnterInstance enter(instance);
if (enter.failed())
return PP_FALSE;
return enter.functions()->IsFullFrame(instance);
@@ -43,7 +43,7 @@ PP_Bool IsFullFrame(PP_Instance instance) {
PP_Var ExecuteScript(PP_Instance instance,
PP_Var script,
PP_Var* exception) {
- EnterFunction<PPB_Instance_FunctionAPI> enter(instance, true);
+ EnterInstance enter(instance);
if (enter.failed())
return PP_MakeUndefined();
return enter.functions()->ExecuteScript(instance, script, exception);