* Changing crash report limitation logic to have more control over extreme cases.
[chromium-blink-merge.git] / ppapi / proxy / error_conversion.h
blob84bfb13a0efb1bbdea11dfb415a159bf38e56a72
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef PPAPI_PROXY_ERROR_CONVERSION_H_
6 #define PPAPI_PROXY_ERROR_CONVERSION_H_
8 #include "ppapi/c/pp_stdint.h"
9 #include "ppapi/proxy/ppapi_proxy_export.h"
11 namespace ppapi {
12 namespace proxy {
14 // When |private_api| is true, coverts all network-related errors +;
15 // PP_ERROR_NOACCESS to PP_ERROR_FAILED. Otherwise, returns |pp_error|
16 // as is.
17 PPAPI_PROXY_EXPORT int32_t ConvertNetworkAPIErrorForCompatibility(
18 int32_t pp_error,
19 bool private_api);
21 } // namespace proxy
22 } // namespace ppapi
24 #endif // PPAPI_PROXY_ERROR_CONVERSION_H_