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

Side by Side Diff: net/url_request/url_request.h

Issue 197030: Re-enabled URLRequestTestHTTP.BasicAuth.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Update the comment in http_response_info.h Created 11 years, 3 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
« no previous file with comments | « net/http/http_response_info.h ('k') | net/url_request/url_request_unittest.cc » ('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 (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_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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 // comma can be used in cookie values. 339 // comma can be used in cookie values.
340 // TODO(darin): add API to enumerate response headers. 340 // TODO(darin): add API to enumerate response headers.
341 void GetResponseHeaderById(int header_id, std::string* value); 341 void GetResponseHeaderById(int header_id, std::string* value);
342 void GetResponseHeaderByName(const std::string& name, std::string* value); 342 void GetResponseHeaderByName(const std::string& name, std::string* value);
343 343
344 // Get all response headers, \n-delimited and \n\0-terminated. This includes 344 // Get all response headers, \n-delimited and \n\0-terminated. This includes
345 // the response status line. Restrictions on GetResponseHeaders apply. 345 // the response status line. Restrictions on GetResponseHeaders apply.
346 void GetAllResponseHeaders(std::string* headers); 346 void GetAllResponseHeaders(std::string* headers);
347 347
348 // The time at which the returned response was requested. For cached 348 // The time at which the returned response was requested. For cached
349 // responses, this may be a time well in the past. 349 // responses, this is the last time the cache entry was validated.
350 const base::Time& request_time() const { 350 const base::Time& request_time() const {
351 return response_info_.request_time; 351 return response_info_.request_time;
352 } 352 }
353 353
354 // The time at which the returned response was generated. For cached 354 // The time at which the returned response was generated. For cached
355 // responses, this may be a time well in the past. 355 // responses, this is the last time the cache entry was validated.
356 const base::Time& response_time() const { 356 const base::Time& response_time() const {
357 return response_info_.response_time; 357 return response_info_.response_time;
358 } 358 }
359 359
360 // Indicate if this response was fetched from disk cache. 360 // Indicate if this response was fetched from disk cache.
361 bool was_cached() const { return response_info_.was_cached; } 361 bool was_cached() const { return response_info_.was_cached; }
362 362
363 // Get all response headers, as a HttpResponseHeaders object. See comments 363 // Get all response headers, as a HttpResponseHeaders object. See comments
364 // in HttpResponseHeaders class as to the format of the data. 364 // in HttpResponseHeaders class as to the format of the data.
365 net::HttpResponseHeaders* response_headers() const; 365 net::HttpResponseHeaders* response_headers() const;
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 667
668 void InsertIntoGraveyard(const RecentRequestInfo& info); 668 void InsertIntoGraveyard(const RecentRequestInfo& info);
669 669
670 base::LinkedList<InstanceTrackerNode> live_instances_; 670 base::LinkedList<InstanceTrackerNode> live_instances_;
671 671
672 size_t next_graveyard_index_; 672 size_t next_graveyard_index_;
673 RecentRequestInfoList graveyard_; 673 RecentRequestInfoList graveyard_;
674 }; 674 };
675 675
676 #endif // NET_URL_REQUEST_URL_REQUEST_H_ 676 #endif // NET_URL_REQUEST_URL_REQUEST_H_
OLDNEW
« no previous file with comments | « net/http/http_response_info.h ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698