| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 |
| 9 #include <queue> | 10 #include <queue> |
| 10 #include <string> | 11 #include <string> |
| 11 #include <vector> | 12 #include <vector> |
| 12 | 13 |
| 13 #include "base/callback.h" | 14 #include "base/callback.h" |
| 14 #include "base/compiler_specific.h" // for WARN_UNUSED_RESULT | 15 #include "base/compiler_specific.h" // for WARN_UNUSED_RESULT |
| 15 #include "base/i18n/streaming_utf8_validator.h" | 16 #include "base/i18n/streaming_utf8_validator.h" |
| 16 #include "base/macros.h" | 17 #include "base/macros.h" |
| 17 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
| 18 #include "base/memory/scoped_ptr.h" | 19 #include "base/memory/scoped_ptr.h" |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 // For UMA. The time when OnConnectSuccess() method was called and |stream_| | 417 // For UMA. The time when OnConnectSuccess() method was called and |stream_| |
| 417 // was set. | 418 // was set. |
| 418 base::TimeTicks established_on_; | 419 base::TimeTicks established_on_; |
| 419 | 420 |
| 420 DISALLOW_COPY_AND_ASSIGN(WebSocketChannel); | 421 DISALLOW_COPY_AND_ASSIGN(WebSocketChannel); |
| 421 }; | 422 }; |
| 422 | 423 |
| 423 } // namespace net | 424 } // namespace net |
| 424 | 425 |
| 425 #endif // NET_WEBSOCKETS_WEBSOCKET_CHANNEL_H_ | 426 #endif // NET_WEBSOCKETS_WEBSOCKET_CHANNEL_H_ |
| OLD | NEW |