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
3 // found in the LICENSE file.
5 #ifndef NET_TOOLS_FLIP_SERVER_FLIP_CONFIG_H_
6 #define NET_TOOLS_FLIP_SERVER_FLIP_CONFIG_H_
13 #include "base/logging.h"
17 enum FlipHandlerType
{
19 FLIP_HANDLER_SPDY_SERVER
,
20 FLIP_HANDLER_HTTP_SERVER
25 FlipAcceptor(enum FlipHandlerType flip_handler_type
,
26 std::string listen_ip
,
27 std::string listen_port
,
28 std::string ssl_cert_filename
,
29 std::string ssl_key_filename
,
30 std::string http_server_ip
,
31 std::string http_server_port
,
32 std::string https_server_ip
,
33 std::string https_server_port
,
35 int accept_backlog_size
,
43 enum FlipHandlerType flip_handler_type_
;
44 std::string listen_ip_
;
45 std::string listen_port_
;
46 std::string ssl_cert_filename_
;
47 std::string ssl_key_filename_
;
48 std::string http_server_ip_
;
49 std::string http_server_port_
;
50 std::string https_server_ip_
;
51 std::string https_server_port_
;
53 int accept_backlog_size_
;
55 int accepts_per_wake_
;
58 int ssl_session_expiry_
;
59 bool ssl_disable_compression_
;
60 int idle_socket_timeout_s_
;
68 void AddAcceptor(enum FlipHandlerType flip_handler_type
,
69 std::string listen_ip
,
70 std::string listen_port
,
71 std::string ssl_cert_filename
,
72 std::string ssl_key_filename
,
73 std::string http_server_ip
,
74 std::string http_server_port
,
75 std::string https_server_ip
,
76 std::string https_server_port
,
78 int accept_backlog_size
,
85 std::vector
<FlipAcceptor
*> acceptors_
;
86 double server_think_time_in_s_
;
87 enum logging::LoggingDestination log_destination_
;
88 std::string log_filename_
;
90 int ssl_session_expiry_
;
91 bool ssl_disable_compression_
;
92 int idle_socket_timeout_s_
;
97 #endif // NET_TOOLS_FLIP_SERVER_FLIP_CONFIG_H_