Index: net/url_request/url_request.h |
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h |
index 3deb198f58f4a938f09493f2ad41e03f588019c3..5e3ca8031d4e380eb4458e07852f560b6b9cb89a 100644 |
--- a/net/url_request/url_request.h |
+++ b/net/url_request/url_request.h |
@@ -15,6 +15,7 @@ |
#include "base/memory/linked_ptr.h" |
#include "base/memory/ref_counted.h" |
#include "base/string16.h" |
+#include "base/time.h" |
#include "base/threading/non_thread_safe.h" |
#include "googleurl/src/gurl.h" |
#include "net/base/auth.h" |
@@ -48,10 +49,6 @@ class AppCacheRequestHandlerTest; |
class AppCacheURLRequestJobTest; |
} |
-namespace base { |
-class Time; |
-} // namespace base |
- |
// Temporary layering violation to allow existing users of a deprecated |
// interface. |
namespace fileapi { |
@@ -456,6 +453,9 @@ class NET_EXPORT URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe) { |
// the response status line. Restrictions on GetResponseHeaders apply. |
void GetAllResponseHeaders(std::string* headers); |
+ // The time when |this| was constructed. |
+ base::TimeTicks creation_time() const { return creation_time_; } |
+ |
// The time at which the returned response was requested. For cached |
// responses, this is the last time the cache entry was validated. |
const base::Time& request_time() const { |
@@ -814,6 +814,8 @@ class NET_EXPORT URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe) { |
AuthCredentials auth_credentials_; |
scoped_refptr<AuthChallengeInfo> auth_info_; |
+ base::TimeTicks creation_time_; |
+ |
DISALLOW_COPY_AND_ASSIGN(URLRequest); |
}; |