summaryrefslogtreecommitdiffstats
path: root/net/http/http_transaction.h
diff options
context:
space:
mode:
authormmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-21 18:23:25 +0000
committermmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-21 18:23:25 +0000
commit58e32bb4ef2ea561fddca0271d0d9e0e3fe24ee1 (patch)
tree264d6e557346f132600aad2e2b683cccc37a3aa6 /net/http/http_transaction.h
parentb1d2c7467b805b0e2d5f7fe6d8fd39e2cb06d4c8 (diff)
downloadchromium_src-58e32bb4ef2ea561fddca0271d0d9e0e3fe24ee1.zip
chromium_src-58e32bb4ef2ea561fddca0271d0d9e0e3fe24ee1.tar.gz
chromium_src-58e32bb4ef2ea561fddca0271d0d9e0e3fe24ee1.tar.bz2
LoadTiming in net, part 3.
Add send and receive times to HttpNetworkTransaction. Add LoadTimingInfo accessors to Http*Transaction, URLRequestJob, and URLRequest classes. Proxy resolution times still need to be added. BUG=77446 Review URL: https://chromiumcodereview.appspot.com/11929017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177942 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_transaction.h')
-rw-r--r--net/http/http_transaction.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/http/http_transaction.h b/net/http/http_transaction.h
index bae9fdc..7b4ab99 100644
--- a/net/http/http_transaction.h
+++ b/net/http/http_transaction.h
@@ -17,6 +17,7 @@ class BoundNetLog;
struct HttpRequestInfo;
class HttpResponseInfo;
class IOBuffer;
+struct LoadTimingInfo;
class X509Certificate;
// Represents a single HTTP transaction (i.e., a single request/response pair).
@@ -110,6 +111,11 @@ class NET_EXPORT_PRIVATE HttpTransaction {
// Returns the upload progress in bytes. If there is no upload data,
// zero will be returned. This does not include the request headers.
virtual UploadProgress GetUploadProgress() const = 0;
+
+ // Populates all of load timing, except for request start times.
+ // |load_timing_info| must have all null times when called. Returns false and
+ // does not modify |load_timing_info| if not currently connected.
+ virtual bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const = 0;
};
} // namespace net