• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2024 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef NET_SERVER_WEB_SOCKET_PARSE_RESULT_H_
6 #define NET_SERVER_WEB_SOCKET_PARSE_RESULT_H_
7 
8 #include "net/base/net_export.h"
9 
10 namespace net {
11 
12 enum class WebSocketParseResult {
13   // Final frame of a text message or compressed frame.
14   FRAME_OK_FINAL,
15   // Other frame of a text message.
16   FRAME_OK_MIDDLE,
17   FRAME_PING,
18   FRAME_PONG,
19   FRAME_INCOMPLETE,
20   FRAME_CLOSE,
21   FRAME_ERROR
22 };
23 
24 }  // namespace net
25 
26 #endif  // NET_SERVER_WEB_SOCKET_PARSE_RESULT_H_
27