Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Side by Side Diff: net/spdy/spdy_framer.h

Issue 3020068: WebSocket over SPDY. (Closed)
Patch Set: fix unittests Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/socket_stream/socket_stream.cc ('k') | net/spdy/spdy_stream.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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_
OLDNEW
« no previous file with comments | « net/socket_stream/socket_stream.cc ('k') | net/spdy/spdy_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698