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

Unified Diff: ppapi/thunk/ppb_ext_socket_thunk.cc

Issue 15039008: Add browser resource host for Apps v2 APIs in Pepper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/thunk/ppb_ext_alarms_thunk.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/ppb_ext_socket_thunk.cc
diff --git a/ppapi/thunk/ppb_ext_socket_thunk.cc b/ppapi/thunk/ppb_ext_socket_thunk.cc
index 18ba4620e3b6635a13a70b373123096dd07d9534..e4134c74e1544d5cf94ba72ac5ad5752df5e1d1e 100644
--- a/ppapi/thunk/ppb_ext_socket_thunk.cc
+++ b/ppapi/thunk/ppb_ext_socket_thunk.cc
@@ -32,7 +32,7 @@ int32_t Create(PP_Instance instance,
input_args.push_back(type);
input_args.push_back(options);
output_args.push_back(create_info);
- return enter.SetResult(enter.functions()->Call(
+ return enter.SetResult(enter.functions()->CallRenderer(
"socket.create", input_args, output_args, enter.callback()));
}
@@ -43,7 +43,7 @@ void Destroy(PP_Instance instance, PP_Var socket_id) {
std::vector<PP_Var> args;
args.push_back(socket_id);
- enter.functions()->Post("socket.destroy", args);
+ enter.functions()->PostRenderer("socket.destroy", args);
}
int32_t Connect(PP_Instance instance,
@@ -62,7 +62,7 @@ int32_t Connect(PP_Instance instance,
input_args.push_back(hostname);
input_args.push_back(port);
output_args.push_back(result);
- return enter.SetResult(enter.functions()->Call(
+ return enter.SetResult(enter.functions()->CallRenderer(
"socket.connect", input_args, output_args, enter.callback()));
}
@@ -82,7 +82,7 @@ int32_t Bind(PP_Instance instance,
input_args.push_back(address);
input_args.push_back(port);
output_args.push_back(result);
- return enter.SetResult(enter.functions()->Call(
+ return enter.SetResult(enter.functions()->CallRenderer(
"socket.bind", input_args, output_args, enter.callback()));
}
@@ -93,7 +93,7 @@ void Disconnect(PP_Instance instance, PP_Var socket_id) {
std::vector<PP_Var> args;
args.push_back(socket_id);
- enter.functions()->Post("socket.disconnect", args);
+ enter.functions()->PostRenderer("socket.disconnect", args);
}
int32_t Read(PP_Instance instance,
@@ -110,7 +110,7 @@ int32_t Read(PP_Instance instance,
input_args.push_back(socket_id);
input_args.push_back(buffer_size);
output_args.push_back(read_info);
- return enter.SetResult(enter.functions()->Call(
+ return enter.SetResult(enter.functions()->CallRenderer(
"socket.read", input_args, output_args, enter.callback()));
}
@@ -128,7 +128,7 @@ int32_t Write(PP_Instance instance,
input_args.push_back(socket_id);
input_args.push_back(data);
output_args.push_back(write_info);
- return enter.SetResult(enter.functions()->Call(
+ return enter.SetResult(enter.functions()->CallRenderer(
"socket.write", input_args, output_args, enter.callback()));
}
@@ -146,7 +146,7 @@ int32_t RecvFrom(PP_Instance instance,
input_args.push_back(socket_id);
input_args.push_back(buffer_size);
output_args.push_back(recv_from_info);
- return enter.SetResult(enter.functions()->Call(
+ return enter.SetResult(enter.functions()->CallRenderer(
"socket.recvFrom", input_args, output_args, enter.callback()));
}
@@ -168,7 +168,7 @@ int32_t SendTo(PP_Instance instance,
input_args.push_back(address);
input_args.push_back(port);
output_args.push_back(write_info);
- return enter.SetResult(enter.functions()->Call(
+ return enter.SetResult(enter.functions()->CallRenderer(
"socket.sendTo", input_args, output_args, enter.callback()));
}
@@ -190,7 +190,7 @@ int32_t Listen(PP_Instance instance,
input_args.push_back(port);
input_args.push_back(backlog);
output_args.push_back(result);
- return enter.SetResult(enter.functions()->Call(
+ return enter.SetResult(enter.functions()->CallRenderer(
"socket.listen", input_args, output_args, enter.callback()));
}
@@ -206,7 +206,7 @@ int32_t Accept(PP_Instance instance,
std::vector<PP_Var*> output_args;
input_args.push_back(socket_id);
output_args.push_back(accept_info);
- return enter.SetResult(enter.functions()->Call(
+ return enter.SetResult(enter.functions()->CallRenderer(
"socket.accept", input_args, output_args, enter.callback()));
}
@@ -226,7 +226,7 @@ int32_t SetKeepAlive(PP_Instance instance,
input_args.push_back(enable);
input_args.push_back(delay);
output_args.push_back(result);
- return enter.SetResult(enter.functions()->Call(
+ return enter.SetResult(enter.functions()->CallRenderer(
"socket.setKeepAlive", input_args, output_args, enter.callback()));
}
@@ -244,7 +244,7 @@ int32_t SetNoDelay(PP_Instance instance,
input_args.push_back(socket_id);
input_args.push_back(no_delay);
output_args.push_back(result);
- return enter.SetResult(enter.functions()->Call(
+ return enter.SetResult(enter.functions()->CallRenderer(
"socket.setNoDelay", input_args, output_args, enter.callback()));
}
@@ -260,7 +260,7 @@ int32_t GetInfo(PP_Instance instance,
std::vector<PP_Var*> output_args;
input_args.push_back(socket_id);
output_args.push_back(result);
- return enter.SetResult(enter.functions()->Call(
+ return enter.SetResult(enter.functions()->CallRenderer(
"socket.getInfo", input_args, output_args, enter.callback()));
}
@@ -274,7 +274,7 @@ int32_t GetNetworkList(PP_Instance instance,
std::vector<PP_Var> input_args;
std::vector<PP_Var*> output_args;
output_args.push_back(result);
- return enter.SetResult(enter.functions()->Call(
+ return enter.SetResult(enter.functions()->CallRenderer(
"socket.getNetworkList", input_args, output_args, enter.callback()));
}
« no previous file with comments | « ppapi/thunk/ppb_ext_alarms_thunk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698