| OLD | NEW |
| 1 // Copyright (c) 2012 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_SPDY_SPDY_SESSION_H_ | 5 #ifndef NET_SPDY_SPDY_SESSION_H_ |
| 6 #define NET_SPDY_SPDY_SESSION_H_ | 6 #define NET_SPDY_SPDY_SESSION_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <list> | 10 #include <list> |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 void WriteSocketLater(); | 390 void WriteSocketLater(); |
| 391 void WriteSocket(); | 391 void WriteSocket(); |
| 392 | 392 |
| 393 // Get a new stream id. | 393 // Get a new stream id. |
| 394 int GetNewStreamId(); | 394 int GetNewStreamId(); |
| 395 | 395 |
| 396 // Queue a frame for sending. | 396 // Queue a frame for sending. |
| 397 // |frame| is the frame to send. | 397 // |frame| is the frame to send. |
| 398 // |priority| is the priority for insertion into the queue. | 398 // |priority| is the priority for insertion into the queue. |
| 399 // |stream| is the stream which this IO is associated with (or NULL). | 399 // |stream| is the stream which this IO is associated with (or NULL). |
| 400 void QueueFrame(SpdyFrame* frame, SpdyPriority priority, | 400 void QueueFrame(SpdyFrame* frame, RequestPriority priority, |
| 401 SpdyStream* stream); | 401 SpdyStream* stream); |
| 402 | 402 |
| 403 // Track active streams in the active stream list. | 403 // Track active streams in the active stream list. |
| 404 void ActivateStream(SpdyStream* stream); | 404 void ActivateStream(SpdyStream* stream); |
| 405 void DeleteStream(SpdyStreamId id, int status); | 405 void DeleteStream(SpdyStreamId id, int status); |
| 406 | 406 |
| 407 // Removes this session from the session pool. | 407 // Removes this session from the session pool. |
| 408 void RemoveFromPool(); | 408 void RemoveFromPool(); |
| 409 | 409 |
| 410 // Check if we have a pending pushed-stream for this url | 410 // Check if we have a pending pushed-stream for this url |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 | 701 |
| 702 const int status_; | 702 const int status_; |
| 703 const std::string description_; | 703 const std::string description_; |
| 704 | 704 |
| 705 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySessionCloseParameter); | 705 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySessionCloseParameter); |
| 706 }; | 706 }; |
| 707 | 707 |
| 708 } // namespace net | 708 } // namespace net |
| 709 | 709 |
| 710 #endif // NET_SPDY_SPDY_SESSION_H_ | 710 #endif // NET_SPDY_SPDY_SESSION_H_ |
| OLD | NEW |