| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_WEBSOCKETS_WEBSOCKET_CHANNEL_H_ | 5 #ifndef NET_WEBSOCKETS_WEBSOCKET_CHANNEL_H_ |
| 6 #define NET_WEBSOCKETS_WEBSOCKET_CHANNEL_H_ | 6 #define NET_WEBSOCKETS_WEBSOCKET_CHANNEL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/memory/scoped_vector.h" | 14 #include "base/memory/scoped_vector.h" |
| 15 #include "googleurl/src/gurl.h" | |
| 16 #include "net/base/net_export.h" | 15 #include "net/base/net_export.h" |
| 17 #include "net/websockets/websocket_frame.h" | 16 #include "net/websockets/websocket_frame.h" |
| 18 #include "net/websockets/websocket_stream.h" | 17 #include "net/websockets/websocket_stream.h" |
| 18 #include "url/gurl.h" |
| 19 | 19 |
| 20 namespace net { | 20 namespace net { |
| 21 | 21 |
| 22 class URLRequestContext; | 22 class URLRequestContext; |
| 23 class WebSocketEventInterface; | 23 class WebSocketEventInterface; |
| 24 | 24 |
| 25 // Transport-independent implementation of WebSockets. Implements protocol | 25 // Transport-independent implementation of WebSockets. Implements protocol |
| 26 // semantics that do not depend on the underlying transport. Provides the | 26 // semantics that do not depend on the underlying transport. Provides the |
| 27 // interface to the content layer. Some WebSocket concepts are used here without | 27 // interface to the content layer. Some WebSocket concepts are used here without |
| 28 // definition; please see the RFC at http://tools.ietf.org/html/rfc6455 for | 28 // definition; please see the RFC at http://tools.ietf.org/html/rfc6455 for |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 // The current state of the channel. Mainly used for sanity checking, but also | 250 // The current state of the channel. Mainly used for sanity checking, but also |
| 251 // used to track the close state. | 251 // used to track the close state. |
| 252 State state_; | 252 State state_; |
| 253 | 253 |
| 254 DISALLOW_COPY_AND_ASSIGN(WebSocketChannel); | 254 DISALLOW_COPY_AND_ASSIGN(WebSocketChannel); |
| 255 }; | 255 }; |
| 256 | 256 |
| 257 } // namespace net | 257 } // namespace net |
| 258 | 258 |
| 259 #endif // NET_WEBSOCKETS_WEBSOCKET_CHANNEL_H_ | 259 #endif // NET_WEBSOCKETS_WEBSOCKET_CHANNEL_H_ |
| OLD | NEW |