OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_FRAMER_H_ | 5 #ifndef NET_SPDY_SPDY_FRAMER_H_ |
6 #define NET_SPDY_SPDY_FRAMER_H_ | 6 #define NET_SPDY_SPDY_FRAMER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #ifdef _WIN32 | 9 #ifdef _WIN32 |
10 #include <winsock2.h> | 10 #include <winsock2.h> |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 namespace net { | 26 namespace net { |
27 class HttpProxyClientSocketPoolTest; | 27 class HttpProxyClientSocketPoolTest; |
28 class HttpNetworkLayer; | 28 class HttpNetworkLayer; |
29 class HttpNetworkTransactionTest; | 29 class HttpNetworkTransactionTest; |
30 class SpdyHttpStreamTest; | 30 class SpdyHttpStreamTest; |
31 class SpdyNetworkTransactionTest; | 31 class SpdyNetworkTransactionTest; |
32 class SpdyProxyClientSocketTest; | 32 class SpdyProxyClientSocketTest; |
33 class SpdySessionTest; | 33 class SpdySessionTest; |
34 class SpdyStreamTest; | 34 class SpdyStreamTest; |
| 35 class SpdyWebSocketStreamTest; |
35 } | 36 } |
36 | 37 |
37 namespace spdy { | 38 namespace spdy { |
38 | 39 |
39 class SpdyFramer; | 40 class SpdyFramer; |
40 class SpdyFramerTest; | 41 class SpdyFramerTest; |
41 | 42 |
42 namespace test { | 43 namespace test { |
43 class TestSpdyVisitor; | 44 class TestSpdyVisitor; |
44 void FramerSetEnableCompressionHelper(SpdyFramer* framer, bool compress); | 45 void FramerSetEnableCompressionHelper(SpdyFramer* framer, bool compress); |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, | 265 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, |
265 UncompressLargerThanFrameBufferInitialSize); | 266 UncompressLargerThanFrameBufferInitialSize); |
266 friend class net::HttpNetworkLayer; // This is temporary for the server. | 267 friend class net::HttpNetworkLayer; // This is temporary for the server. |
267 friend class net::HttpNetworkTransactionTest; | 268 friend class net::HttpNetworkTransactionTest; |
268 friend class net::HttpProxyClientSocketPoolTest; | 269 friend class net::HttpProxyClientSocketPoolTest; |
269 friend class net::SpdyHttpStreamTest; | 270 friend class net::SpdyHttpStreamTest; |
270 friend class net::SpdyNetworkTransactionTest; | 271 friend class net::SpdyNetworkTransactionTest; |
271 friend class net::SpdyProxyClientSocketTest; | 272 friend class net::SpdyProxyClientSocketTest; |
272 friend class net::SpdySessionTest; | 273 friend class net::SpdySessionTest; |
273 friend class net::SpdyStreamTest; | 274 friend class net::SpdyStreamTest; |
| 275 friend class net::SpdyWebSocketStreamTest; |
274 friend class test::TestSpdyVisitor; | 276 friend class test::TestSpdyVisitor; |
275 friend void test::FramerSetEnableCompressionHelper(SpdyFramer* framer, | 277 friend void test::FramerSetEnableCompressionHelper(SpdyFramer* framer, |
276 bool compress); | 278 bool compress); |
277 | 279 |
278 // For ease of testing we can tweak compression on/off. | 280 // For ease of testing we can tweak compression on/off. |
279 void set_enable_compression(bool value); | 281 void set_enable_compression(bool value); |
280 static void set_enable_compression_default(bool value); | 282 static void set_enable_compression_default(bool value); |
281 | 283 |
282 | 284 |
283 // The initial size of the control frame buffer; this is used internally | 285 // The initial size of the control frame buffer; this is used internally |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 | 357 |
356 SpdyFramerVisitorInterface* visitor_; | 358 SpdyFramerVisitorInterface* visitor_; |
357 | 359 |
358 static bool compression_default_; | 360 static bool compression_default_; |
359 static int spdy_version_; | 361 static int spdy_version_; |
360 }; | 362 }; |
361 | 363 |
362 } // namespace spdy | 364 } // namespace spdy |
363 | 365 |
364 #endif // NET_SPDY_SPDY_FRAMER_H_ | 366 #endif // NET_SPDY_SPDY_FRAMER_H_ |
OLD | NEW |