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

Side by Side Diff: net/url_request/url_request.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_URL_REQUEST_URL_REQUEST_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_H_
6 #define NET_URL_REQUEST_URL_REQUEST_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 492
493 // Get all response headers, as a HttpResponseHeaders object. See comments 493 // Get all response headers, as a HttpResponseHeaders object. See comments
494 // in HttpResponseHeaders class as to the format of the data. 494 // in HttpResponseHeaders class as to the format of the data.
495 HttpResponseHeaders* response_headers() const; 495 HttpResponseHeaders* response_headers() const;
496 496
497 // Get the SSL connection info. 497 // Get the SSL connection info.
498 const SSLInfo& ssl_info() const { 498 const SSLInfo& ssl_info() const {
499 return response_info_.ssl_info; 499 return response_info_.ssl_info;
500 } 500 }
501 501
502 // Returns true if the URLRequest was delivered through a ServiceWorker.
503 bool was_fetched_via_service_worker() const {
504 return response_info_.was_fetched_via_service_worker;
505 }
506
507 // The original URL of the response which was fetched via the ServiceWorker.
tyoshino (SeeGerritForStatus) 2014/07/14 07:00:42 ditto
horo 2014/07/15 00:36:17 Done.
508 // This may be empty if the response was created inside the ServiceWorker.
509 const GURL& original_url_via_service_worker() const {
510 return response_info_.original_url_via_service_worker;
511 }
512
502 // Gets timing information related to the request. Events that have not yet 513 // Gets timing information related to the request. Events that have not yet
503 // occurred are left uninitialized. After a second request starts, due to 514 // occurred are left uninitialized. After a second request starts, due to
504 // a redirect or authentication, values will be reset. 515 // a redirect or authentication, values will be reset.
505 // 516 //
506 // LoadTimingInfo only contains ConnectTiming information and socket IDs for 517 // LoadTimingInfo only contains ConnectTiming information and socket IDs for
507 // non-cached HTTP responses. 518 // non-cached HTTP responses.
508 void GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const; 519 void GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const;
509 520
510 // Returns the cookie values included in the response, if the request is one 521 // Returns the cookie values included in the response, if the request is one
511 // that can have cookies. Returns true if the request is a cookie-bearing 522 // that can have cookies. Returns true if the request is a cookie-bearing
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 892
882 // The proxy server used for this request, if any. 893 // The proxy server used for this request, if any.
883 HostPortPair proxy_server_; 894 HostPortPair proxy_server_;
884 895
885 DISALLOW_COPY_AND_ASSIGN(URLRequest); 896 DISALLOW_COPY_AND_ASSIGN(URLRequest);
886 }; 897 };
887 898
888 } // namespace net 899 } // namespace net
889 900
890 #endif // NET_URL_REQUEST_URL_REQUEST_H_ 901 #endif // NET_URL_REQUEST_URL_REQUEST_H_
OLDNEW
« net/http/http_response_info.h ('K') | « net/http/http_response_info.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698