| 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_TEST_UTIL_SPDY3_H_ | 5 #ifndef NET_SPDY_SPDY_TEST_UTIL_SPDY3_H_ |
| 6 #define NET_SPDY_SPDY_TEST_UTIL_SPDY3_H_ | 6 #define NET_SPDY_SPDY_TEST_UTIL_SPDY3_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/strings/string_piece.h" | 10 #include "base/strings/string_piece.h" |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 // Construct a SPDY control frame. |spdy_version| must be | 102 // Construct a SPDY control frame. |spdy_version| must be |
| 103 // kSpdyVersion3 or kSpdyVersion4. | 103 // kSpdyVersion3 or kSpdyVersion4. |
| 104 // | 104 // |
| 105 // TODO(akalin): Move this to a common area once | 105 // TODO(akalin): Move this to a common area once |
| 106 // ConstructSpdyFrameWithVersion() is also moved. | 106 // ConstructSpdyFrameWithVersion() is also moved. |
| 107 SpdyFrame* ConstructSpdyControlFrameWithVersion( | 107 SpdyFrame* ConstructSpdyControlFrameWithVersion( |
| 108 int spdy_version, | 108 int spdy_version, |
| 109 const char* const extra_headers[], | 109 const char* const extra_headers[], |
| 110 int extra_header_count, | 110 int extra_header_count, |
| 111 bool compressed, | 111 bool compressed, |
| 112 int stream_id, | 112 SpdyStreamId stream_id, |
| 113 RequestPriority request_priority, | 113 RequestPriority request_priority, |
| 114 SpdyFrameType type, | 114 SpdyFrameType type, |
| 115 SpdyControlFlags flags, | 115 SpdyControlFlags flags, |
| 116 const char* const* kHeaders, | 116 const char* const* kHeaders, |
| 117 int kHeadersSize, | 117 int kHeadersSize, |
| 118 SpdyStreamId associated_stream_id); | 118 SpdyStreamId associated_stream_id); |
| 119 | 119 |
| 120 // Construct a generic SPDY control frame. | 120 // Construct a generic SPDY control frame. |
| 121 SpdyFrame* ConstructSpdyControlFrame(const char* const extra_headers[], | 121 SpdyFrame* ConstructSpdyControlFrame(const char* const extra_headers[], |
| 122 int extra_header_count, | 122 int extra_header_count, |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 SpdySessionPool* const pool_; | 422 SpdySessionPool* const pool_; |
| 423 | 423 |
| 424 DISALLOW_COPY_AND_ASSIGN(SpdySessionPoolPeer); | 424 DISALLOW_COPY_AND_ASSIGN(SpdySessionPoolPeer); |
| 425 }; | 425 }; |
| 426 | 426 |
| 427 } // namespace test_spdy3 | 427 } // namespace test_spdy3 |
| 428 | 428 |
| 429 } // namespace net | 429 } // namespace net |
| 430 | 430 |
| 431 #endif // NET_SPDY_SPDY_TEST_UTIL_SPDY3_H_ | 431 #endif // NET_SPDY_SPDY_TEST_UTIL_SPDY3_H_ |
| OLD | NEW |