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

Unified Diff: ppapi/proxy/pp_utils.h

Issue 22923014: TCPSockets are switched to the new Pepper proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Deleted logging. 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698