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 <queue> | 8 #include <queue> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 // (quota units). | 369 // (quota units). |
370 int send_quota_high_water_mark_; | 370 int send_quota_high_water_mark_; |
371 // The current amount of quota that the renderer has available for sending | 371 // The current amount of quota that the renderer has available for sending |
372 // on this logical channel (quota units). | 372 // on this logical channel (quota units). |
373 int current_send_quota_; | 373 int current_send_quota_; |
374 // The remaining amount of quota that the renderer will allow us to send on | 374 // The remaining amount of quota that the renderer will allow us to send on |
375 // this logical channel (quota units). | 375 // this logical channel (quota units). |
376 uint64 current_receive_quota_; | 376 uint64 current_receive_quota_; |
377 | 377 |
378 // Timer for the closing handshake. | 378 // Timer for the closing handshake. |
379 base::OneShotTimer<WebSocketChannel> close_timer_; | 379 base::OneShotTimer close_timer_; |
380 | 380 |
381 // Timeout for the closing handshake. | 381 // Timeout for the closing handshake. |
382 base::TimeDelta closing_handshake_timeout_; | 382 base::TimeDelta closing_handshake_timeout_; |
383 | 383 |
384 // Timeout for the underlying connection close after completion of closing | 384 // Timeout for the underlying connection close after completion of closing |
385 // handshake. | 385 // handshake. |
386 base::TimeDelta underlying_connection_close_timeout_; | 386 base::TimeDelta underlying_connection_close_timeout_; |
387 | 387 |
388 // Storage for the status code and reason from the time the Close frame | 388 // Storage for the status code and reason from the time the Close frame |
389 // arrives until the connection is closed and they are passed to | 389 // arrives until the connection is closed and they are passed to |
(...skipping 27 matching lines...) Expand all Loading... |
417 // For UMA. The time when OnConnectSuccess() method was called and |stream_| | 417 // For UMA. The time when OnConnectSuccess() method was called and |stream_| |
418 // was set. | 418 // was set. |
419 base::TimeTicks established_on_; | 419 base::TimeTicks established_on_; |
420 | 420 |
421 DISALLOW_COPY_AND_ASSIGN(WebSocketChannel); | 421 DISALLOW_COPY_AND_ASSIGN(WebSocketChannel); |
422 }; | 422 }; |
423 | 423 |
424 } // namespace net | 424 } // namespace net |
425 | 425 |
426 #endif // NET_WEBSOCKETS_WEBSOCKET_CHANNEL_H_ | 426 #endif // NET_WEBSOCKETS_WEBSOCKET_CHANNEL_H_ |
OLD | NEW |