OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "net/tools/flip_server/streamer_interface.h" | 5 #include "net/tools/flip_server/streamer_interface.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "net/tools/flip_server/balsa_frame.h" | 9 #include "net/tools/flip_server/balsa_frame.h" |
10 #include "net/tools/flip_server/constants.h" | 10 #include "net/tools/flip_server/constants.h" |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 return 0; | 124 return 0; |
125 } | 125 } |
126 VLOG(2) << ACCEPTOR_CLIENT_IDENT << "StreamerSM: Creating new server " | 126 VLOG(2) << ACCEPTOR_CLIENT_IDENT << "StreamerSM: Creating new server " |
127 << "connection."; | 127 << "connection."; |
128 sm_other_interface_ = new StreamerSM(server_connection, this, | 128 sm_other_interface_ = new StreamerSM(server_connection, this, |
129 epoll_server_, acceptor_); | 129 epoll_server_, acceptor_); |
130 sm_other_interface_->InitSMInterface(this, 0); | 130 sm_other_interface_->InitSMInterface(this, 0); |
131 } | 131 } |
132 // The Streamer interface is used to stream HTTPS connections, so we | 132 // The Streamer interface is used to stream HTTPS connections, so we |
133 // will always use the https_server_ip/port here. | 133 // will always use the https_server_ip/port here. |
134 sm_other_interface_->InitSMConnection(NULL, sm_other_interface_, | 134 sm_other_interface_->InitSMConnection(NULL, |
135 epoll_server_, -1, | 135 sm_other_interface_, |
| 136 epoll_server_, |
| 137 -1, |
136 acceptor_->https_server_ip_, | 138 acceptor_->https_server_ip_, |
137 acceptor_->https_server_port_, | 139 acceptor_->https_server_port_, |
138 "", | 140 std::string(), |
139 false); | 141 false); |
140 | 142 |
141 return 1; | 143 return 1; |
142 } | 144 } |
143 | 145 |
144 size_t StreamerSM::SendSynStream(uint32 stream_id, | 146 size_t StreamerSM::SendSynStream(uint32 stream_id, |
145 const BalsaHeaders& headers) { | 147 const BalsaHeaders& headers) { |
146 return 0; | 148 return 0; |
147 } | 149 } |
148 | 150 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 void StreamerSM::HandleBodyError(BalsaFrame* framer) { | 198 void StreamerSM::HandleBodyError(BalsaFrame* framer) { |
197 HandleError(); | 199 HandleError(); |
198 } | 200 } |
199 | 201 |
200 void StreamerSM::HandleError() { | 202 void StreamerSM::HandleError() { |
201 VLOG(1) << ACCEPTOR_CLIENT_IDENT << "Error detected"; | 203 VLOG(1) << ACCEPTOR_CLIENT_IDENT << "Error detected"; |
202 } | 204 } |
203 | 205 |
204 } // namespace net | 206 } // namespace net |
205 | 207 |
OLD | NEW |