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

Unified Diff: webkit/glue/resource_loader_bridge.h

Issue 6771043: Enabled actual transfer size in chromium (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment added Created 9 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/resource_fetcher.cc ('k') | webkit/glue/resource_loader_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/resource_loader_bridge.h
diff --git a/webkit/glue/resource_loader_bridge.h b/webkit/glue/resource_loader_bridge.h
index e5f7d2e5edf1b3a3bf156c59c0a8b4fb1759736f..df558977a820756ab4232e77a6e7b5b6e0beb385 100644
--- a/webkit/glue/resource_loader_bridge.h
+++ b/webkit/glue/resource_loader_bridge.h
@@ -141,6 +141,10 @@ struct ResourceResponseInfo {
// Content length if available. -1 if not available
int64 content_length;
+ // Length of the raw data transferred over the network. In case there is no
+ // data, contains -1.
+ int64 raw_data_length;
+
// The appcache this response was loaded from, or kNoCacheId.
int64 appcache_id;
@@ -301,7 +305,12 @@ class ResourceLoaderBridge {
// Called when a chunk of response data is available. This method may
// be called multiple times or not at all if an error occurs.
- virtual void OnReceivedData(const char* data, int len) = 0;
+ // The raw_data_length is the length of the raw data transferred over the
+ // network, which could be different from data length (e.g. for gzipped
+ // content), or -1 if if unknown.
+ virtual void OnReceivedData(const char* data,
+ int data_length,
+ int raw_data_length) = 0;
// Called when metadata generated by the renderer is retrieved from the
// cache. This method may be called zero or one times.
« no previous file with comments | « webkit/glue/resource_fetcher.cc ('k') | webkit/glue/resource_loader_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698