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

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

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 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-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 // TODO(darin): add API to enumerate response headers. 279 // TODO(darin): add API to enumerate response headers.
280 void GetResponseHeaderById(int header_id, std::string* value); 280 void GetResponseHeaderById(int header_id, std::string* value);
281 void GetResponseHeaderByName(const std::string& name, std::string* value); 281 void GetResponseHeaderByName(const std::string& name, std::string* value);
282 282
283 // Get all response headers, \n-delimited and \n\0-terminated. This includes 283 // Get all response headers, \n-delimited and \n\0-terminated. This includes
284 // the response status line. Restrictions on GetResponseHeaders apply. 284 // the response status line. Restrictions on GetResponseHeaders apply.
285 void GetAllResponseHeaders(std::string* headers); 285 void GetAllResponseHeaders(std::string* headers);
286 286
287 // The time at which the returned response was requested. For cached 287 // The time at which the returned response was requested. For cached
288 // responses, this may be a time well in the past. 288 // responses, this may be a time well in the past.
289 const Time& request_time() const { 289 const base::Time& request_time() const {
290 return response_info_.request_time; 290 return response_info_.request_time;
291 } 291 }
292 292
293 // The time at which the returned response was generated. For cached 293 // The time at which the returned response was generated. For cached
294 // responses, this may be a time well in the past. 294 // responses, this may be a time well in the past.
295 const Time& response_time() const { 295 const base::Time& response_time() const {
296 return response_info_.response_time; 296 return response_info_.response_time;
297 } 297 }
298 298
299 // Get all response headers, as a HttpResponseHeaders object. See comments 299 // Get all response headers, as a HttpResponseHeaders object. See comments
300 // in HttpResponseHeaders class as to the format of the data. 300 // in HttpResponseHeaders class as to the format of the data.
301 net::HttpResponseHeaders* response_headers() const { 301 net::HttpResponseHeaders* response_headers() const {
302 return response_info_.headers.get(); 302 return response_info_.headers.get();
303 } 303 }
304 304
305 // Get the SSL connection info. 305 // Get the SSL connection info.
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 #else // disable leak checking in release builds... 511 #else // disable leak checking in release builds...
512 512
513 #define URLREQUEST_COUNT_CTOR() 513 #define URLREQUEST_COUNT_CTOR()
514 #define URLREQUEST_COUNT_DTOR() 514 #define URLREQUEST_COUNT_DTOR()
515 515
516 #endif 516 #endif
517 517
518 518
519 #endif // NET_URL_REQUEST_URL_REQUEST_H_ 519 #endif // NET_URL_REQUEST_URL_REQUEST_H_
520 520
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698