Expose the HttpResponseInfo's ConnectionInfo in window.chrome.loadTimes()
Review URL: https://chromiumcodereview.appspot.com/12792010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204393 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/common/resource_messages.h b/content/common/resource_messages.h
index 7aebd09..d29e65a5 100644
--- a/content/common/resource_messages.h
+++ b/content/common/resource_messages.h
@@ -14,6 +14,7 @@
#include "content/public/common/resource_response.h"
#include "ipc/ipc_message_macros.h"
#include "net/base/request_priority.h"
+#include "net/http/http_response_info.h"
#include "webkit/glue/resource_request_body.h"
#ifndef CONTENT_COMMON_RESOURCE_MESSAGES_H_
@@ -78,6 +79,10 @@
#undef IPC_MESSAGE_EXPORT
#define IPC_MESSAGE_EXPORT CONTENT_EXPORT
+IPC_ENUM_TRAITS_MAX_VALUE( \
+ net::HttpResponseInfo::ConnectionInfo, \
+ net::HttpResponseInfo::NUM_OF_CONNECTION_INFOS - 1)
+
IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseHead)
IPC_STRUCT_TRAITS_PARENT(webkit_glue::ResourceResponseInfo)
IPC_STRUCT_TRAITS_MEMBER(error_code)
@@ -108,6 +113,7 @@
IPC_STRUCT_TRAITS_MEMBER(was_fetched_via_spdy)
IPC_STRUCT_TRAITS_MEMBER(was_npn_negotiated)
IPC_STRUCT_TRAITS_MEMBER(was_alternate_protocol_available)
+ IPC_STRUCT_TRAITS_MEMBER(connection_info)
IPC_STRUCT_TRAITS_MEMBER(was_fetched_via_proxy)
IPC_STRUCT_TRAITS_MEMBER(npn_negotiated_protocol)
IPC_STRUCT_TRAITS_MEMBER(socket_address)