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

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

Issue 3432009: Add a new class SpdyProxyClientSocket which implements ClientSocket... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' 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
« no previous file with comments | « net/net.gyp ('k') | net/spdy/spdy_http_utils.cc » ('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>
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 HttpNetworkLayer; 27 class HttpNetworkLayer;
28 class HttpNetworkTransactionTest; 28 class HttpNetworkTransactionTest;
29 class SpdyHttpStreamTest;
29 class SpdyNetworkTransactionTest; 30 class SpdyNetworkTransactionTest;
31 class SpdyProxyClientSocketTest;
30 class SpdySessionTest; 32 class SpdySessionTest;
31 class SpdyStreamTest; 33 class SpdyStreamTest;
32 class SpdyHttpStreamTest;
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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 static void set_protocol_version(int version) { spdy_version_= version; } 242 static void set_protocol_version(int version) { spdy_version_= version; }
242 static int protocol_version() { return spdy_version_; } 243 static int protocol_version() { return spdy_version_; }
243 244
244 // Export the compression dictionary 245 // Export the compression dictionary
245 static const char kDictionary[]; 246 static const char kDictionary[];
246 static const int kDictionarySize; 247 static const int kDictionarySize;
247 248
248 protected: 249 protected:
249 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, DataCompression); 250 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, DataCompression);
250 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, UnclosedStreamDataCompressors); 251 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, UnclosedStreamDataCompressors);
252 friend class net::HttpNetworkLayer; // This is temporary for the server.
253 friend class net::HttpNetworkTransactionTest;
254 friend class net::SpdyHttpStreamTest;
251 friend class net::SpdyNetworkTransactionTest; 255 friend class net::SpdyNetworkTransactionTest;
252 friend class net::HttpNetworkTransactionTest; 256 friend class net::SpdyProxyClientSocketTest;
253 friend class net::HttpNetworkLayer; // This is temporary for the server.
254 friend class net::SpdySessionTest; 257 friend class net::SpdySessionTest;
255 friend class net::SpdyHttpStreamTest;
256 friend class net::SpdyStreamTest; 258 friend class net::SpdyStreamTest;
257 friend class test::TestSpdyVisitor; 259 friend class test::TestSpdyVisitor;
258 friend void test::FramerSetEnableCompressionHelper(SpdyFramer* framer, 260 friend void test::FramerSetEnableCompressionHelper(SpdyFramer* framer,
259 bool compress); 261 bool compress);
260 262
261 // For ease of testing we can tweak compression on/off. 263 // For ease of testing we can tweak compression on/off.
262 void set_enable_compression(bool value); 264 void set_enable_compression(bool value);
263 static void set_enable_compression_default(bool value); 265 static void set_enable_compression_default(bool value);
264 266
265 private: 267 private:
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 330
329 SpdyFramerVisitorInterface* visitor_; 331 SpdyFramerVisitorInterface* visitor_;
330 332
331 static bool compression_default_; 333 static bool compression_default_;
332 static int spdy_version_; 334 static int spdy_version_;
333 }; 335 };
334 336
335 } // namespace spdy 337 } // namespace spdy
336 338
337 #endif // NET_SPDY_SPDY_FRAMER_H_ 339 #endif // NET_SPDY_SPDY_FRAMER_H_
OLDNEW
« no previous file with comments | « net/net.gyp ('k') | net/spdy/spdy_http_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698