| 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_STREAM_H_ | 5 #ifndef NET_SPDY_SPDY_STREAM_H_ |
| 6 #define NET_SPDY_SPDY_STREAM_H_ | 6 #define NET_SPDY_SPDY_STREAM_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 // i.e. can we just use the URL this stream was created with and/or | 397 // i.e. can we just use the URL this stream was created with and/or |
| 398 // one we receive headers validate that the URL from them is the | 398 // one we receive headers validate that the URL from them is the |
| 399 // same. | 399 // same. |
| 400 GURL GetUrlFromHeaders() const; | 400 GURL GetUrlFromHeaders() const; |
| 401 | 401 |
| 402 // Returns whether the URL for this stream is known. | 402 // Returns whether the URL for this stream is known. |
| 403 // | 403 // |
| 404 // TODO(akalin): Remove this, as it's only used in tests. | 404 // TODO(akalin): Remove this, as it's only used in tests. |
| 405 bool HasUrlFromHeaders() const; | 405 bool HasUrlFromHeaders() const; |
| 406 | 406 |
| 407 int GetProtocolVersion() const; | 407 SpdyMajorVersion GetProtocolVersion() const; |
| 408 | 408 |
| 409 private: | 409 private: |
| 410 class SynStreamBufferProducer; | 410 class SynStreamBufferProducer; |
| 411 class HeaderBufferProducer; | 411 class HeaderBufferProducer; |
| 412 | 412 |
| 413 enum State { | 413 enum State { |
| 414 STATE_NONE, | 414 STATE_NONE, |
| 415 STATE_GET_DOMAIN_BOUND_CERT, | 415 STATE_GET_DOMAIN_BOUND_CERT, |
| 416 STATE_GET_DOMAIN_BOUND_CERT_COMPLETE, | 416 STATE_GET_DOMAIN_BOUND_CERT_COMPLETE, |
| 417 STATE_SEND_DOMAIN_BOUND_CERT, | 417 STATE_SEND_DOMAIN_BOUND_CERT, |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 // When OnFrameWriteComplete() is called, these variables are set. | 545 // When OnFrameWriteComplete() is called, these variables are set. |
| 546 SpdyFrameType just_completed_frame_type_; | 546 SpdyFrameType just_completed_frame_type_; |
| 547 size_t just_completed_frame_size_; | 547 size_t just_completed_frame_size_; |
| 548 | 548 |
| 549 DISALLOW_COPY_AND_ASSIGN(SpdyStream); | 549 DISALLOW_COPY_AND_ASSIGN(SpdyStream); |
| 550 }; | 550 }; |
| 551 | 551 |
| 552 } // namespace net | 552 } // namespace net |
| 553 | 553 |
| 554 #endif // NET_SPDY_SPDY_STREAM_H_ | 554 #endif // NET_SPDY_SPDY_STREAM_H_ |
| OLD | NEW |