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

Unified Diff: net/socket/connection_attempts.h

Issue 1006643002: Plumb connection attempts from (non-proxy) ConnectJobs to HttpNetworkTransaction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: net/socket/connection_attempts.h
diff --git a/net/socket/connection_attempts.h b/net/socket/connection_attempts.h
new file mode 100644
index 0000000000000000000000000000000000000000..739a97a15765a6afe6be8cc997cdd3b954b3f357
--- /dev/null
+++ b/net/socket/connection_attempts.h
@@ -0,0 +1,27 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_SOCKET_CONNECTION_ATTEMPTS_H_
+#define NET_SOCKET_CONNECTION_ATTEMPTS_H_
+
+namespace net {
+
+// A record of an connection attempt made to connect to a host. Includes TCP
+// and SSL errors, but not proxy connections.
+struct ConnectionAttempt {
+ ConnectionAttempt(const IPEndPoint endpoint, int result)
+ : endpoint(endpoint), result(result) {}
+
+ // Address and port the socket layer attempted to connect to.
+ IPEndPoint endpoint;
+
+ // Net error indicating the result of that attempt.
+ int result;
+};
+
+typedef std::vector<ConnectionAttempt> ConnectionAttempts;
+
+} // namespace net
+
+#endif // NET_SOCKET_CONNECTION_ATTEMPTS_H_

Powered by Google App Engine
This is Rietveld 408576698