| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_UTILITY_H_ | 7 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_UTILITY_H_ |
| 8 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_UTILITY_H_ | 8 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_UTILITY_H_ |
| 9 | 9 |
| 10 #include "native_client/src/include/nacl_assert.h" | 10 #include "native_client/src/include/nacl_assert.h" |
| 11 #include "native_client/src/shared/platform/nacl_check.h" | 11 #include "native_client/src/shared/platform/nacl_check.h" |
| 12 | 12 |
| 13 namespace ppapi_proxy { | 13 namespace ppapi_proxy { |
| 14 | 14 |
| 15 void DebugPrintf(const char* format, ...); | 15 void DebugPrintf(const char* format, ...); |
| 16 | 16 |
| 17 // Check to see if |data| points to a valid UTF8 string. Checks at most |len| | 17 // Check to see if |data| points to a valid UTF8 string. Checks at most |len| |
| 18 // characters. See http://tools.ietf.org/html/rfc3629 for details. | 18 // characters. See http://tools.ietf.org/html/rfc3629 for details. |
| 19 bool StringIsUtf8(const char* data, uint32_t len); | 19 bool StringIsUtf8(const char* data, uint32_t len); |
| 20 | 20 |
| 21 } // namespace ppapi_proxy | 21 } // namespace ppapi_proxy |
| 22 | 22 |
| 23 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_UTILITY_H_ | 23 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_UTILITY_H_ |
| OLD | NEW |