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

Side by Side Diff: ppapi/proxy/error_conversion.h

Issue 22923014: TCPSockets are switched to the new Pepper proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix. Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #ifndef PPAPI_PROXY_ERROR_CONVERSION_H_
6 #define PPAPI_PROXY_ERROR_CONVERSION_H_
7
8 #include "ppapi/c/pp_stdint.h"
9 #include "ppapi/proxy/ppapi_proxy_export.h"
10
11 namespace ppapi {
12 namespace proxy {
13
14 // Converts a net::Error code to a PP_Error code.
15 // Returns the same value as |net_error| if |net_error| is a positive number.
16 PPAPI_PROXY_EXPORT int32_t NetErrorToPepperError(int net_error);
17
18 // When |private_api| is true, coverts all network-related errors +;
19 // PP_ERROR_NOACCESS to PP_ERROR_FAILED. Otherwise, returns |pp_error|
20 // as is.
21 PPAPI_PROXY_EXPORT int32_t ConvertNetworkAPIErrorForCompatibility(
22 int32_t pp_error,
23 bool private_api);
24
25 } // namespace proxy
26 } // namespace ppapi
27
28 #endif // PPAPI_PROXY_ERROR_CONVERSION_H_
OLDNEW
« ppapi/proxy/DEPS ('K') | « ppapi/proxy/DEPS ('k') | ppapi/proxy/error_conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698