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

Side by Side Diff: net/http/http_response_info.h

Issue 6369003: New extension API: "tab.socketAddress" (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 NET_HTTP_HTTP_RESPONSE_INFO_H_ 5 #ifndef NET_HTTP_HTTP_RESPONSE_INFO_H_
6 #define NET_HTTP_HTTP_RESPONSE_INFO_H_ 6 #define NET_HTTP_HTTP_RESPONSE_INFO_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "net/base/ssl_info.h" 10 #include "net/base/ssl_info.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 // True if response could use alternate protocol. However, browser 54 // True if response could use alternate protocol. However, browser
55 // will ingore the alternate protocol if spdy is not enabled. 55 // will ingore the alternate protocol if spdy is not enabled.
56 bool was_alternate_protocol_available; 56 bool was_alternate_protocol_available;
57 57
58 // True if the request was fetched via an explicit proxy. The proxy could 58 // True if the request was fetched via an explicit proxy. The proxy could
59 // be any type of proxy, HTTP or SOCKS. Note, we do not know if a 59 // be any type of proxy, HTTP or SOCKS. Note, we do not know if a
60 // transparent proxy may have been involved. 60 // transparent proxy may have been involved.
61 bool was_fetched_via_proxy; 61 bool was_fetched_via_proxy;
62 62
63 // Remote address of the socket which fetched this resource, for presenting
64 // to inquisitive users. Can be "ipv4:port", "[ipv6]:port", or empty.
65 std::string socket_address;
66
63 // The time at which the request was made that resulted in this response. 67 // The time at which the request was made that resulted in this response.
64 // For cached responses, this is the last time the cache entry was validated. 68 // For cached responses, this is the last time the cache entry was validated.
65 base::Time request_time; 69 base::Time request_time;
66 70
67 // The time at which the response headers were received. For cached 71 // The time at which the response headers were received. For cached
68 // this is the last time the cache entry was validated. 72 // this is the last time the cache entry was validated.
69 base::Time response_time; 73 base::Time response_time;
70 74
71 // If the response headers indicate a 401 or 407 failure, then this structure 75 // If the response headers indicate a 401 or 407 failure, then this structure
72 // will contain additional information about the authentication challenge. 76 // will contain additional information about the authentication challenge.
(...skipping 14 matching lines...) Expand all
87 // The "Vary" header data for this response. 91 // The "Vary" header data for this response.
88 HttpVaryData vary_data; 92 HttpVaryData vary_data;
89 93
90 // Any metadata asociated with this resource's cached data. 94 // Any metadata asociated with this resource's cached data.
91 scoped_refptr<IOBufferWithSize> metadata; 95 scoped_refptr<IOBufferWithSize> metadata;
92 }; 96 };
93 97
94 } // namespace net 98 } // namespace net
95 99
96 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ 100 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698