| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // SignalThread Interface | 63 // SignalThread Interface |
| 64 void DoWork() override; | 64 void DoWork() override; |
| 65 void OnMessage(Message* msg) override; | 65 void OnMessage(Message* msg) override; |
| 66 | 66 |
| 67 void Next(); | 67 void Next(); |
| 68 void Complete(ProxyType type); | 68 void Complete(ProxyType type); |
| 69 | 69 |
| 70 void OnConnectEvent(AsyncSocket * socket); | 70 void OnConnectEvent(AsyncSocket * socket); |
| 71 void OnReadEvent(AsyncSocket * socket); | 71 void OnReadEvent(AsyncSocket * socket); |
| 72 void OnCloseEvent(AsyncSocket * socket, int error); | 72 void OnCloseEvent(AsyncSocket * socket, int error); |
| 73 void OnTimeout(); |
| 73 void OnResolveResult(AsyncResolverInterface* resolver); | 74 void OnResolveResult(AsyncResolverInterface* resolver); |
| 74 bool DoConnect(); | 75 bool DoConnect(); |
| 75 | 76 |
| 76 private: | 77 private: |
| 77 std::string agent_; | 78 std::string agent_; |
| 78 std::string server_url_; | 79 std::string server_url_; |
| 79 ProxyInfo proxy_; | 80 ProxyInfo proxy_; |
| 80 AsyncResolverInterface* resolver_; | 81 AsyncResolverInterface* resolver_; |
| 81 AsyncSocket* socket_; | 82 AsyncSocket* socket_; |
| 82 int next_; | 83 int next_; |
| 83 | 84 |
| 84 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AutoDetectProxy); | 85 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AutoDetectProxy); |
| 85 }; | 86 }; |
| 86 | 87 |
| 87 } // namespace rtc | 88 } // namespace rtc |
| 88 | 89 |
| 89 #endif // WEBRTC_BASE_AUTODETECTPROXY_H_ | 90 #endif // WEBRTC_BASE_AUTODETECTPROXY_H_ |
| OLD | NEW |