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