OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_SERVER_WEB_SOCKET_H_ | 5 #ifndef NET_SERVER_WEB_SOCKET_H_ |
6 #define NET_SERVER_WEB_SOCKET_H_ | 6 #define NET_SERVER_WEB_SOCKET_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/memory/scoped_ptr.h" | |
13 | 12 |
14 namespace net { | 13 namespace net { |
15 | 14 |
16 class HttpConnection; | 15 class HttpConnection; |
17 class HttpServerRequestInfo; | 16 class HttpServerRequestInfo; |
18 | 17 |
19 class WebSocket { | 18 class WebSocket { |
20 public: | 19 public: |
21 enum ParseResult { | 20 enum ParseResult { |
22 FRAME_OK, | 21 FRAME_OK, |
(...skipping 14 matching lines...) Expand all Loading... |
37 protected: | 36 protected: |
38 explicit WebSocket(HttpConnection* connection); | 37 explicit WebSocket(HttpConnection* connection); |
39 HttpConnection* connection_; | 38 HttpConnection* connection_; |
40 | 39 |
41 private: | 40 private: |
42 DISALLOW_COPY_AND_ASSIGN(WebSocket); | 41 DISALLOW_COPY_AND_ASSIGN(WebSocket); |
43 }; | 42 }; |
44 | 43 |
45 } // namespace net | 44 } // namespace net |
46 | 45 |
47 #endif // NET_SERVER_WEB_SOCKET_H_ | 46 #endif // NET_SERVER_WEB_SOCKET_H_ |
OLD | NEW |