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

Side by Side Diff: webrtc/base/autodetectproxy.h

Issue 2104203002: Fixing flakiness of TestDetectUnresolvedProxy. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 5 months 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 | « no previous file | webrtc/base/autodetectproxy.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 /* 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
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_
OLDNEW
« no previous file with comments | « no previous file | webrtc/base/autodetectproxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698