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

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

Issue 3417010: Integrate the SpdyProxyClientSocket into the HttpStreamRequest... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Rebasing again Created 10 years, 2 months 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 | Annotate | Revision Log
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>
11 #else 11 #else
12 #include <arpa/inet.h> 12 #include <arpa/inet.h>
13 #endif 13 #endif
14 #include <list> 14 #include <list>
15 #include <map> 15 #include <map>
16 #include <string> 16 #include <string>
17 #include <utility> 17 #include <utility>
18 18
19 #include "base/basictypes.h" 19 #include "base/basictypes.h"
20 #include "base/gtest_prod_util.h" 20 #include "base/gtest_prod_util.h"
21 #include "base/scoped_ptr.h" 21 #include "base/scoped_ptr.h"
22 #include "net/spdy/spdy_protocol.h" 22 #include "net/spdy/spdy_protocol.h"
23 23
24 typedef struct z_stream_s z_stream; // Forward declaration for zlib. 24 typedef struct z_stream_s z_stream; // Forward declaration for zlib.
25 25
26 namespace net { 26 namespace net {
27 class HttpProxyClientSocketPoolTest;
27 class HttpNetworkLayer; 28 class HttpNetworkLayer;
28 class HttpNetworkTransactionTest; 29 class HttpNetworkTransactionTest;
29 class SpdyHttpStreamTest; 30 class SpdyHttpStreamTest;
30 class SpdyNetworkTransactionTest; 31 class SpdyNetworkTransactionTest;
31 class SpdyProxyClientSocketTest; 32 class SpdyProxyClientSocketTest;
32 class SpdySessionTest; 33 class SpdySessionTest;
33 class SpdyStreamTest; 34 class SpdyStreamTest;
34 } 35 }
35 36
36 namespace spdy { 37 namespace spdy {
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 245
245 // Export the compression dictionary 246 // Export the compression dictionary
246 static const char kDictionary[]; 247 static const char kDictionary[];
247 static const int kDictionarySize; 248 static const int kDictionarySize;
248 249
249 protected: 250 protected:
250 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, DataCompression); 251 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, DataCompression);
251 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, UnclosedStreamDataCompressors); 252 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, UnclosedStreamDataCompressors);
252 friend class net::HttpNetworkLayer; // This is temporary for the server. 253 friend class net::HttpNetworkLayer; // This is temporary for the server.
253 friend class net::HttpNetworkTransactionTest; 254 friend class net::HttpNetworkTransactionTest;
255 friend class net::HttpProxyClientSocketPoolTest;
254 friend class net::SpdyHttpStreamTest; 256 friend class net::SpdyHttpStreamTest;
255 friend class net::SpdyNetworkTransactionTest; 257 friend class net::SpdyNetworkTransactionTest;
256 friend class net::SpdyProxyClientSocketTest; 258 friend class net::SpdyProxyClientSocketTest;
257 friend class net::SpdySessionTest; 259 friend class net::SpdySessionTest;
258 friend class net::SpdyStreamTest; 260 friend class net::SpdyStreamTest;
259 friend class test::TestSpdyVisitor; 261 friend class test::TestSpdyVisitor;
260 friend void test::FramerSetEnableCompressionHelper(SpdyFramer* framer, 262 friend void test::FramerSetEnableCompressionHelper(SpdyFramer* framer,
261 bool compress); 263 bool compress);
262 264
263 // For ease of testing we can tweak compression on/off. 265 // For ease of testing we can tweak compression on/off.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 332
331 SpdyFramerVisitorInterface* visitor_; 333 SpdyFramerVisitorInterface* visitor_;
332 334
333 static bool compression_default_; 335 static bool compression_default_;
334 static int spdy_version_; 336 static int spdy_version_;
335 }; 337 };
336 338
337 } // namespace spdy 339 } // namespace spdy
338 340
339 #endif // NET_SPDY_SPDY_FRAMER_H_ 341 #endif // NET_SPDY_SPDY_FRAMER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698