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

Side by Side Diff: net/tools/flip_server/constants.h

Issue 9252029: SPDY - default to SPDY/2.1 protocol in unittests (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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/third_party/nss/ssl/ssl.h ('k') | net/tools/flip_server/spdy_ssl.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) 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_TOOLS_FLIP_SERVER_CONSTANTS_H_ 5 #ifndef NET_TOOLS_FLIP_SERVER_CONSTANTS_H_
6 #define NET_TOOLS_FLIP_SERVER_CONSTANTS_H_ 6 #define NET_TOOLS_FLIP_SERVER_CONSTANTS_H_
7 7
8 #include "net/spdy/spdy_protocol.h" 8 #include "net/spdy/spdy_protocol.h"
9 9
10 const int kMSS = 1460; 10 const int kMSS = 1460;
11 const int kSSLOverhead = 25; 11 const int kSSLOverhead = 25;
12 const int kSpdyOverhead = spdy::SpdyFrame::kHeaderSize; 12 const int kSpdyOverhead = spdy::SpdyFrame::kHeaderSize;
13 const int kInitialDataSendersThreshold = (2 * kMSS) - kSpdyOverhead; 13 const int kInitialDataSendersThreshold = (2 * kMSS) - kSpdyOverhead;
14 const int kSSLSegmentSize = (1 * kMSS) - kSSLOverhead; 14 const int kSSLSegmentSize = (1 * kMSS) - kSSLOverhead;
15 const int kSpdySegmentSize = kSSLSegmentSize - kSpdyOverhead; 15 const int kSpdySegmentSize = kSSLSegmentSize - kSpdyOverhead;
16 16
17 #define ACCEPTOR_CLIENT_IDENT \ 17 #define ACCEPTOR_CLIENT_IDENT \
18 acceptor_->listen_ip_ << ":" \ 18 acceptor_->listen_ip_ << ":" \
19 << acceptor_->listen_port_ << " " 19 << acceptor_->listen_port_ << " "
20 20
21 #define NEXT_PROTO_STRING "\x06spdy/2\x08http/1.1\x08http/1.0" 21 #define NEXT_PROTO_STRING "\x06spdy/2\x08spdy/2.1\x08http/1.1\x08http/1.0"
wtc 2012/01/26 00:13:25 Should we list spdy/2.1 first? Does the order mat
ramant (doing other things) 2012/01/26 18:58:48 Hasan said order doesn't matter. Removed this file
22 22
23 #define SSL_CIPHER_LIST "!aNULL:!ADH:!eNull:!LOW:!EXP:RC4+RSA:MEDIUM:HIGH" 23 #define SSL_CIPHER_LIST "!aNULL:!ADH:!eNull:!LOW:!EXP:RC4+RSA:MEDIUM:HIGH"
24 24
25 #define IPV4_PRINTABLE_FORMAT(IP) (((IP)>>0)&0xff), (((IP)>>8)&0xff), \ 25 #define IPV4_PRINTABLE_FORMAT(IP) (((IP)>>0)&0xff), (((IP)>>8)&0xff), \
26 (((IP)>>16)&0xff), (((IP)>>24)&0xff) 26 (((IP)>>16)&0xff), (((IP)>>24)&0xff)
27 27
28 #define PIDFILE "/var/run/flip-server.pid" 28 #define PIDFILE "/var/run/flip-server.pid"
29 29
30 #endif // NET_TOOLS_FLIP_SERVER_CONSTANTS_H_ 30 #endif // NET_TOOLS_FLIP_SERVER_CONSTANTS_H_
OLDNEW
« no previous file with comments | « net/third_party/nss/ssl/ssl.h ('k') | net/tools/flip_server/spdy_ssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698