OLD | NEW |
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 #include "chrome/browser/chromeos/web_socket_proxy.h" | 5 #include "chrome/browser/chromeos/web_socket_proxy.h" |
6 | 6 |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 #include <string.h> | 9 #include <string.h> |
10 | 10 |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 Chan primchan_; | 353 Chan primchan_; |
354 // Destination channel is a proxied connection. | 354 // Destination channel is a proxied connection. |
355 Chan destchan_; | 355 Chan destchan_; |
356 | 356 |
357 EventKey evkey_; | 357 EventKey evkey_; |
358 | 358 |
359 // Header fields supplied by client at initial websocket handshake. | 359 // Header fields supplied by client at initial websocket handshake. |
360 std::map<std::string, std::string> header_fields_; | 360 std::map<std::string, std::string> header_fields_; |
361 | 361 |
362 // Cryptohashed answer for websocket handshake. | 362 // Cryptohashed answer for websocket handshake. |
363 MD5Digest handshake_response_; | 363 base::MD5Digest handshake_response_; |
364 | 364 |
365 // Hostname and port of destination socket. | 365 // Hostname and port of destination socket. |
366 // Websocket client supplies them in first data frame (destframe). | 366 // Websocket client supplies them in first data frame (destframe). |
367 std::string destname_; | 367 std::string destname_; |
368 uint32 destport_; | 368 uint32 destport_; |
369 | 369 |
370 // We try to DNS resolve hostname in both IPv4 and IPv6 domains. | 370 // We try to DNS resolve hostname in both IPv4 and IPv6 domains. |
371 // Track resolution failures here. | 371 // Track resolution failures here. |
372 bool destresolution_ipv4_failed_; | 372 bool destresolution_ipv4_failed_; |
373 bool destresolution_ipv6_failed_; | 373 bool destresolution_ipv6_failed_; |
(...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1289 void WebSocketProxy::Run() { | 1289 void WebSocketProxy::Run() { |
1290 static_cast<Serv*>(impl_)->Run(); | 1290 static_cast<Serv*>(impl_)->Run(); |
1291 } | 1291 } |
1292 | 1292 |
1293 void WebSocketProxy::Shutdown() { | 1293 void WebSocketProxy::Shutdown() { |
1294 static_cast<Serv*>(impl_)->Shutdown(); | 1294 static_cast<Serv*>(impl_)->Shutdown(); |
1295 } | 1295 } |
1296 | 1296 |
1297 } // namespace chromeos | 1297 } // namespace chromeos |
1298 | 1298 |
OLD | NEW |