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

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

Issue 375513002: [ServiceWorker] Propagates ServiceWorker fetched response's URL and wasFetchedViaServiceWorker flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 #include "net/base/host_port_pair.h" 11 #include "net/base/host_port_pair.h"
12 #include "net/base/net_export.h" 12 #include "net/base/net_export.h"
13 #include "net/http/http_vary_data.h" 13 #include "net/http/http_vary_data.h"
14 #include "net/socket/next_proto.h" 14 #include "net/socket/next_proto.h"
15 #include "net/ssl/ssl_info.h" 15 #include "net/ssl/ssl_info.h"
16 #include "url/gurl.h"
16 17
17 class Pickle; 18 class Pickle;
18 19
19 namespace net { 20 namespace net {
20 21
21 class AuthChallengeInfo; 22 class AuthChallengeInfo;
22 class HttpResponseHeaders; 23 class HttpResponseHeaders;
23 class IOBufferWithSize; 24 class IOBufferWithSize;
24 class SSLCertRequestInfo; 25 class SSLCertRequestInfo;
25 26
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // True if the request was fetched via an explicit proxy. The proxy could 87 // True if the request was fetched via an explicit proxy. The proxy could
87 // be any type of proxy, HTTP or SOCKS. Note, we do not know if a 88 // be any type of proxy, HTTP or SOCKS. Note, we do not know if a
88 // transparent proxy may have been involved. If true, |proxy_server| contains 89 // transparent proxy may have been involved. If true, |proxy_server| contains
89 // the name of the proxy server that was used. 90 // the name of the proxy server that was used.
90 bool was_fetched_via_proxy; 91 bool was_fetched_via_proxy;
91 HostPortPair proxy_server; 92 HostPortPair proxy_server;
92 93
93 // Whether the request use http proxy or server authentication. 94 // Whether the request use http proxy or server authentication.
94 bool did_use_http_auth; 95 bool did_use_http_auth;
95 96
97 // True if the request was fetched via a ServiceWorker.
98 bool was_fetched_via_service_worker;
99 // The original URL of the repsponse which was fetched via the ServiceWorker.
tyoshino (SeeGerritForStatus) 2014/07/14 07:00:42 ditto
horo 2014/07/15 00:36:17 Done.
100 // This may be empty if the repsponse was created inside the ServiceWorker.
101 GURL original_url_via_service_worker;
102
96 // Remote address of the socket which fetched this resource. 103 // Remote address of the socket which fetched this resource.
97 // 104 //
98 // NOTE: If the response was served from the cache (was_cached is true), 105 // NOTE: If the response was served from the cache (was_cached is true),
99 // the socket address will be set to the address that the content came from 106 // the socket address will be set to the address that the content came from
100 // originally. This is true even if the response was re-validated using a 107 // originally. This is true even if the response was re-validated using a
101 // different remote address, or if some of the content came from a byte-range 108 // different remote address, or if some of the content came from a byte-range
102 // request to a different address. 109 // request to a different address.
103 HostPortPair socket_address; 110 HostPortPair socket_address;
104 111
105 // Protocol negotiated with the server. 112 // Protocol negotiated with the server.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 scoped_refptr<IOBufferWithSize> metadata; 146 scoped_refptr<IOBufferWithSize> metadata;
140 147
141 static ConnectionInfo ConnectionInfoFromNextProto(NextProto next_proto); 148 static ConnectionInfo ConnectionInfoFromNextProto(NextProto next_proto);
142 149
143 static std::string ConnectionInfoToString(ConnectionInfo connection_info); 150 static std::string ConnectionInfoToString(ConnectionInfo connection_info);
144 }; 151 };
145 152
146 } // namespace net 153 } // namespace net
147 154
148 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ 155 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698