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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_client.cc

Issue 9119001: srpcgen: Use 'const char*' for string parameters (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased; update year in copyright header srpcgen emits Created 8 years, 12 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
Index: ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_client.cc
diff --git a/ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_client.cc b/ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_client.cc
index d438ac136d0f6bd788606ec26000840c6f7ef8e7..d52966609e3c8b20401736589ece0964182b0bf5 100644
--- a/ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_client.cc
+++ b/ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_client.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 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.
//
@@ -27,7 +27,7 @@
NaClSrpcError NaClFileRpcClient::StreamAsFile(
NaClSrpcChannel* channel,
PP_Instance instance,
- char* url,
+ const char* url,
int32_t callback_id) {
VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
("%s: PPAPI calls are not supported off the main thread\n",
@@ -46,7 +46,7 @@ NaClSrpcError NaClFileRpcClient::StreamAsFile(
NaClSrpcError NaClFileRpcClient::GetFileDesc(
NaClSrpcChannel* channel,
PP_Instance instance,
- char* url,
+ const char* url,
NaClSrpcImcDescType* file_desc) {
VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
("%s: PPAPI calls are not supported off the main thread\n",
@@ -64,7 +64,7 @@ NaClSrpcError NaClFileRpcClient::GetFileDesc(
NaClSrpcError PpbRpcClient::PPB_GetInterface(
NaClSrpcChannel* channel,
- char* interface_name,
+ const char* interface_name,
int32_t* exports_interface_name) {
NaClSrpcError retval;
retval = NaClSrpcInvokeBySignature(
@@ -2322,7 +2322,7 @@ NaClSrpcError PpbTCPSocketPrivateRpcClient::PPB_TCPSocket_Private_IsTCPSocket(
NaClSrpcError PpbTCPSocketPrivateRpcClient::PPB_TCPSocket_Private_Connect(
NaClSrpcChannel* channel,
PP_Resource tcp_socket,
- char* host,
+ const char* host,
int32_t port,
int32_t callback_id,
int32_t* pp_error) {
@@ -2404,7 +2404,7 @@ NaClSrpcError PpbTCPSocketPrivateRpcClient::PPB_TCPSocket_Private_GetRemoteAddre
NaClSrpcError PpbTCPSocketPrivateRpcClient::PPB_TCPSocket_Private_SSLHandshake(
NaClSrpcChannel* channel,
PP_Resource tcp_socket,
- char* server_name,
+ const char* server_name,
int32_t server_port,
int32_t callback_id,
int32_t* pp_error) {

Powered by Google App Engine
This is Rietveld 408576698