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

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

Issue 9187071: Lift the 64K message size limit for postMessage to/from NativeClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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/plugin_ppb_file_ref.cc
===================================================================
--- ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_file_ref.cc (revision 117568)
+++ ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_file_ref.cc (working copy)
@@ -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.
@@ -89,7 +89,7 @@
DebugPrintf("PPB_FileRef::GetName: file_ref=%"NACL_PRIu32"\n", file_ref);
PP_Var name = PP_MakeUndefined();
- nacl_abi_size_t length = kMaxVarSize;
+ nacl_abi_size_t length = kMaxReturnVarSize;
nacl::scoped_array<char> name_bytes(new char[length]);
NaClSrpcError srpc_result = PpbFileRefRpcClient::PPB_FileRef_GetName(
GetMainSrpcChannel(),
@@ -109,7 +109,7 @@
DebugPrintf("PPB_FileRef::GetPath: file_ref=%"NACL_PRIu32"\n", file_ref);
PP_Var path = PP_MakeUndefined();
- nacl_abi_size_t length = kMaxVarSize;
+ nacl_abi_size_t length = kMaxReturnVarSize;
nacl::scoped_array<char> path_bytes(new char[length]);
NaClSrpcError srpc_result = PpbFileRefRpcClient::PPB_FileRef_GetPath(
GetMainSrpcChannel(),

Powered by Google App Engine
This is Rietveld 408576698