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

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

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.cc
diff --git a/ppapi/utility/websocket/websocket_api.cc b/ppapi/utility/websocket/websocket_api.cc
index db4e01aa36e592e3da11b4d47abe8acf0d042f23..26e2746a5d3f2752abedd22f5324dcfb1d5ae572 100644
--- a/ppapi/utility/websocket/websocket_api.cc
+++ b/ppapi/utility/websocket/websocket_api.cc
@@ -41,7 +41,7 @@ class WebSocketAPI::Implement : public WebSocket {
return result;
}
- int32_t Close(uint16_t code, const Var& reason) {
+ int32_t Close(PP_WebSocketStatusCode code, const Var& reason) {
CompletionCallback callback =
callback_factory_.NewOptionalCallback(&Implement::DidClose);
int32_t result = WebSocket::Close(code, reason, callback);
@@ -112,7 +112,7 @@ int32_t WebSocketAPI::Connect(const Var& url, const Var protocols[],
return impl_->Connect(url, protocols, protocol_count);
}
-int32_t WebSocketAPI::Close(uint16_t code, const Var& reason) {
+int32_t WebSocketAPI::Close(PP_WebSocketStatusCode code, const Var& reason) {
return impl_->Close(code, reason);
}

Powered by Google App Engine
This is Rietveld 408576698