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

Side by Side Diff: content/public/common/resource_response_info.h

Issue 686313002: Make the proxy server HostPortPair available in document_state so that (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | « content/common/resource_messages.h ('k') | content/public/renderer/document_state.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_
6 #define CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ 6 #define CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 bool was_alternate_protocol_available; 87 bool was_alternate_protocol_available;
88 88
89 // Information about the type of connection used to fetch this response. 89 // Information about the type of connection used to fetch this response.
90 net::HttpResponseInfo::ConnectionInfo connection_info; 90 net::HttpResponseInfo::ConnectionInfo connection_info;
91 91
92 // True if the response was fetched via an explicit proxy (as opposed to a 92 // True if the response was fetched via an explicit proxy (as opposed to a
93 // transparent proxy). The proxy could be any type of proxy, HTTP or SOCKS. 93 // transparent proxy). The proxy could be any type of proxy, HTTP or SOCKS.
94 // Note: we cannot tell if a transparent proxy may have been involved. 94 // Note: we cannot tell if a transparent proxy may have been involved.
95 bool was_fetched_via_proxy; 95 bool was_fetched_via_proxy;
96 96
97 // Remote address of the proxy server used for this resource, if one was used.
98 net::HostPortPair proxy_server;
Charlie Reis 2014/10/30 18:05:32 It wasn't clear to me whether we need both this an
jeremyim 2014/10/30 19:00:36 Done.
99
97 // NPN protocol negotiated with the server. 100 // NPN protocol negotiated with the server.
98 std::string npn_negotiated_protocol; 101 std::string npn_negotiated_protocol;
99 102
100 // Remote address of the socket which fetched this resource. 103 // Remote address of the socket which fetched this resource.
101 net::HostPortPair socket_address; 104 net::HostPortPair socket_address;
102 105
103 // True if the response was fetched by a ServiceWorker. 106 // True if the response was fetched by a ServiceWorker.
104 bool was_fetched_via_service_worker; 107 bool was_fetched_via_service_worker;
105 108
106 // True when the request whoes mode is |CORS| or |CORS-with-forced-preflight| 109 // True when the request whoes mode is |CORS| or |CORS-with-forced-preflight|
(...skipping 12 matching lines...) Expand all
119 // ServiceWorker Timing Information. These will be set if the response is 122 // ServiceWorker Timing Information. These will be set if the response is
120 // provided by the ServiceWorker, or kept empty. 123 // provided by the ServiceWorker, or kept empty.
121 base::TimeTicks service_worker_fetch_start; 124 base::TimeTicks service_worker_fetch_start;
122 base::TimeTicks service_worker_fetch_ready; 125 base::TimeTicks service_worker_fetch_ready;
123 base::TimeTicks service_worker_fetch_end; 126 base::TimeTicks service_worker_fetch_end;
124 }; 127 };
125 128
126 } // namespace content 129 } // namespace content
127 130
128 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ 131 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_
OLDNEW
« no previous file with comments | « content/common/resource_messages.h ('k') | content/public/renderer/document_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698