Chromium Code Reviews| 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..79bfb943a7e9a31d1cd0480574ed1f0dc219d5c3 |
| --- /dev/null |
| +++ b/net/websockets/websocket_handshake_challenge.h |
| @@ -0,0 +1,21 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
|
eroman
2014/11/19 00:00:28
2014
|
| +// 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 value that the server |
| +// should return in the Sec-WebSocket-Accept header. |
| +NET_EXPORT_PRIVATE std::string ComputeSecWebSocketAccept( |
| + const std::string& key); |
| + |
| +} // namespace net |
| + |
| +#endif // NET_WEBSOCKETS_WEBSOCKET_HANDSHAKE_CHALLENGE_H_ |