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

Side by Side Diff: net/http/http_transaction.h

Issue 14625012: net: Return LoadTiming information in the case of a cache hit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Small fix Created 7 years, 7 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_HTTP_HTTP_TRANSACTION_H_ 5 #ifndef NET_HTTP_HTTP_TRANSACTION_H_
6 #define NET_HTTP_HTTP_TRANSACTION_H_ 6 #define NET_HTTP_HTTP_TRANSACTION_H_
7 7
8 #include "net/base/completion_callback.h" 8 #include "net/base/completion_callback.h"
9 #include "net/base/load_states.h" 9 #include "net/base/load_states.h"
10 #include "net/base/net_export.h" 10 #include "net/base/net_export.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // info is not available. 106 // info is not available.
107 virtual const HttpResponseInfo* GetResponseInfo() const = 0; 107 virtual const HttpResponseInfo* GetResponseInfo() const = 0;
108 108
109 // Returns the load state for this transaction. 109 // Returns the load state for this transaction.
110 virtual LoadState GetLoadState() const = 0; 110 virtual LoadState GetLoadState() const = 0;
111 111
112 // Returns the upload progress in bytes. If there is no upload data, 112 // Returns the upload progress in bytes. If there is no upload data,
113 // zero will be returned. This does not include the request headers. 113 // zero will be returned. This does not include the request headers.
114 virtual UploadProgress GetUploadProgress() const = 0; 114 virtual UploadProgress GetUploadProgress() const = 0;
115 115
116 // Populates all of load timing, except for request start times. 116 // Populates all of load timing, except for request start times and receive
117 // headers time.
117 // |load_timing_info| must have all null times when called. Returns false and 118 // |load_timing_info| must have all null times when called. Returns false and
118 // does not modify |load_timing_info| if not currently connected. 119 // does not modify |load_timing_info| if there's no timing information to
120 // provide.
119 virtual bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const = 0; 121 virtual bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const = 0;
120 122
121 // Called when the priority of the parent job changes. 123 // Called when the priority of the parent job changes.
122 virtual void SetPriority(RequestPriority priority) = 0; 124 virtual void SetPriority(RequestPriority priority) = 0;
123 }; 125 };
124 126
125 } // namespace net 127 } // namespace net
126 128
127 #endif // NET_HTTP_HTTP_TRANSACTION_H_ 129 #endif // NET_HTTP_HTTP_TRANSACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698