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

Unified Diff: ppapi/utility/websocket/websocket_api.h

Issue 10332138: WebSocket Pepper API: allow to close connection without code and reason (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: uint16_t -> enum Created 8 years, 7 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/utility/websocket/websocket_api.h
diff --git a/ppapi/utility/websocket/websocket_api.h b/ppapi/utility/websocket/websocket_api.h
index f733b1c49110bfda8001d785dc75a523cf835642..890dccef354f763047d988e1d08e630a52889415 100644
--- a/ppapi/utility/websocket/websocket_api.h
+++ b/ppapi/utility/websocket/websocket_api.h
@@ -47,14 +47,15 @@ class WebSocketAPI {
/// Close() closes the specified WebSocket connection by specifying
/// <code>code</code> and <code>reason</code>.
///
- /// @param[in] code The WebSocket close code. Ignored if it is 0.
+ /// @param[in] code The WebSocket close code. Ignored if it is
+ /// PP_WEBSOCKETSTATUSCODE_NOT_SPECIFIED.
/// @param[in] reason A <code>Var</code> of string type which represents the
/// WebSocket close reason. Ignored if it is undefined type.
///
/// @return An int32_t containing an error code from
/// <code>pp_errors.h</code>.
/// See also <code>pp::WebSocket::Close</code>.
- int32_t Close(uint16_t code, const Var& reason);
+ int32_t Close(PP_WebSocketStatusCode code, const Var& reason);
/// Send() sends a message to the WebSocket server.
///

Powered by Google App Engine
This is Rietveld 408576698