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

Unified Diff: net/websockets/websocket_handshake_challenge.h

Issue 683033003: Rename websocket_handshake_handler.* to websocket_handshake_challenge.* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change calling convention of ComputeSecWebSocketAccept Created 6 years, 1 month 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: net/websockets/websocket_handshake_challenge.h
diff --git a/net/websockets/websocket_handshake_challenge.h b/net/websockets/websocket_handshake_challenge.h
new file mode 100644
index 0000000000000000000000000000000000000000..a56f0359d32d9cec3bcfa9daf6759018cb73f997
--- /dev/null
+++ b/net/websockets/websocket_handshake_challenge.h
@@ -0,0 +1,20 @@
+// Copyright (c) 2012 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 NET_WEBSOCKETS_WEBSOCKET_HANDSHAKE_CHALLENGE_H_
+#define NET_WEBSOCKETS_WEBSOCKET_HANDSHAKE_CHALLENGE_H_
+
+#include <string>
+
+#include "net/base/net_export.h"
+
+namespace net {
+
+// Given a WebSocket handshake challenge, compute the correct response.
+NET_EXPORT_PRIVATE std::string ComputeSecWebSocketAccept(
wtc 2014/11/12 20:11:55 I assume the response to the challenge is called a
Adam Rice 2014/11/13 15:24:38 Indeed. The header name is Sec-WebSocket-Accept. I
+ const std::string& key);
+
+} // namespace net
+
+#endif // NET_WEBSOCKETS_WEBSOCKET_HANDSHAKE_CHALLENGE_H_

Powered by Google App Engine
This is Rietveld 408576698