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

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

Issue 93793004: Format and Refactor Flip Server. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 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/tools/flip_server/create_listener.cc ('k') | net/tools/flip_server/flip_config.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_PROXY_CONFIG_H 5 #ifndef NET_TOOLS_FLIP_SERVER_FLIP_CONFIG_H_
6 #define NET_TOOLS_FLIP_PROXY_CONFIG_H 6 #define NET_TOOLS_FLIP_SERVER_FLIP_CONFIG_H_
7 7
8 #include <arpa/inet.h> // in_addr_t 8 #include <arpa/inet.h>
9 9
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "net/tools/flip_server/create_listener.h" 14 #include "net/tools/flip_server/create_listener.h"
15 15
16 namespace net { 16 namespace net {
17 17
18 enum FlipHandlerType { 18 enum FlipHandlerType {
19 FLIP_HANDLER_PROXY, 19 FLIP_HANDLER_PROXY,
20 FLIP_HANDLER_SPDY_SERVER, 20 FLIP_HANDLER_SPDY_SERVER,
21 FLIP_HANDLER_HTTP_SERVER 21 FLIP_HANDLER_HTTP_SERVER
22 }; 22 };
23 23
24 class FlipAcceptor { 24 class FlipAcceptor {
25 public: 25 public:
26 FlipAcceptor(enum FlipHandlerType flip_handler_type, 26 FlipAcceptor(enum FlipHandlerType flip_handler_type,
27 std::string listen_ip, 27 std::string listen_ip,
28 std::string listen_port, 28 std::string listen_port,
29 std::string ssl_cert_filename, 29 std::string ssl_cert_filename,
30 std::string ssl_key_filename, 30 std::string ssl_key_filename,
31 std::string http_server_ip, 31 std::string http_server_ip,
32 std::string http_server_port, 32 std::string http_server_port,
33 std::string https_server_ip, 33 std::string https_server_ip,
34 std::string https_server_port, 34 std::string https_server_port,
35 int spdy_only, 35 int spdy_only,
36 int accept_backlog_size, 36 int accept_backlog_size,
37 bool disable_nagle, 37 bool disable_nagle,
38 int accepts_per_wake, 38 int accepts_per_wake,
39 bool reuseport, 39 bool reuseport,
40 bool wait_for_iface, 40 bool wait_for_iface,
41 void *memory_cache); 41 void* memory_cache);
42 ~FlipAcceptor(); 42 ~FlipAcceptor();
43 43
44 enum FlipHandlerType flip_handler_type_; 44 enum FlipHandlerType flip_handler_type_;
45 std::string listen_ip_; 45 std::string listen_ip_;
46 std::string listen_port_; 46 std::string listen_port_;
47 std::string ssl_cert_filename_; 47 std::string ssl_cert_filename_;
48 std::string ssl_key_filename_; 48 std::string ssl_key_filename_;
49 std::string http_server_ip_; 49 std::string http_server_ip_;
50 std::string http_server_port_; 50 std::string http_server_port_;
51 std::string https_server_ip_; 51 std::string https_server_ip_;
(...skipping 22 matching lines...) Expand all
74 std::string http_server_ip, 74 std::string http_server_ip,
75 std::string http_server_port, 75 std::string http_server_port,
76 std::string https_server_ip, 76 std::string https_server_ip,
77 std::string https_server_port, 77 std::string https_server_port,
78 int spdy_only, 78 int spdy_only,
79 int accept_backlog_size, 79 int accept_backlog_size,
80 bool disable_nagle, 80 bool disable_nagle,
81 int accepts_per_wake, 81 int accepts_per_wake,
82 bool reuseport, 82 bool reuseport,
83 bool wait_for_iface, 83 bool wait_for_iface,
84 void *memory_cache); 84 void* memory_cache);
85 85
86 std::vector<FlipAcceptor*> acceptors_; 86 std::vector<FlipAcceptor*> acceptors_;
87 double server_think_time_in_s_; 87 double server_think_time_in_s_;
88 enum logging::LoggingDestination log_destination_; 88 enum logging::LoggingDestination log_destination_;
89 std::string log_filename_; 89 std::string log_filename_;
90 bool wait_for_iface_; 90 bool wait_for_iface_;
91 int ssl_session_expiry_; 91 int ssl_session_expiry_;
92 bool ssl_disable_compression_; 92 bool ssl_disable_compression_;
93 int idle_socket_timeout_s_; 93 int idle_socket_timeout_s_;
94 }; 94 };
95 95
96 } // namespace 96 } // namespace net
97 97
98 #endif // NET_TOOLS_FLIP_PROXY_CONFIG_H 98 #endif // NET_TOOLS_FLIP_SERVER_FLIP_CONFIG_H_
99
OLDNEW
« no previous file with comments | « net/tools/flip_server/create_listener.cc ('k') | net/tools/flip_server/flip_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698