Chromium Code Reviews| Index: ppapi/proxy/pp_utils.h |
| diff --git a/ppapi/proxy/pp_utils.h b/ppapi/proxy/pp_utils.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..fb73a4144494b51e322afa2c460ff6991901549a |
| --- /dev/null |
| +++ b/ppapi/proxy/pp_utils.h |
| @@ -0,0 +1,21 @@ |
| +// Copyright 2013 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. |
| + |
| +#ifndef PPAPI_PROXY_PP_UTILS_H_ |
| +#define PPAPI_PROXY_PP_UTILS_H_ |
| + |
| +#include "base/basictypes.h" |
| + |
| +namespace ppapi { |
| +namespace proxy { |
| + |
| +// When |private_api| is true, coverts all network-related errors +; |
| +// PP_ERROR_NOACCESS to PP_ERROR_FAILED. Otherwise, returns |pp_error| |
| +// as is. |
| +int32_t ConvertPPError(int32_t pp_error, bool private_api); |
|
yzshen1
2013/08/19 19:07:07
Maybe we should merge this into ppapi/host/error_c
ygorshenin1
2013/08/20 13:00:49
I've renamed this method, but not merged into ppap
yzshen1
2013/08/20 22:39:58
I think you could move error_conversion.h/cc into
ygorshenin1
2013/08/21 12:00:40
Done.
|
| + |
| +} // namespace proxy |
| +} // namespace ppapi |
| + |
| +#endif // PPAPI_PROXY_PP_UTILS_H_ |