summaryrefslogtreecommitdiffstats
path: root/ppapi/host/error_conversion.h
blob: ee02b118626267b40ff82861cfe25efc7a8e2e95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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_HOST_ERROR_CONVERSION_H_
#define PPAPI_HOST_ERROR_CONVERSION_H_

#include "ppapi/c/pp_stdint.h"
#include "ppapi/host/ppapi_host_export.h"

namespace ppapi {
namespace host {

// Converts a net::Error code to a PP_Error code.
// Returns the same value as |net_error| if |net_error| is a positive number.
PPAPI_HOST_EXPORT int32_t NetErrorToPepperError(int net_error);

}  // namespace host
}  // namespace ppapi

#endif  // PPAPI_HOST_ERROR_CONVERSION_H_