diff options
Diffstat (limited to 'webkit/glue/resource_loader_bridge.h')
-rw-r--r-- | webkit/glue/resource_loader_bridge.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/webkit/glue/resource_loader_bridge.h b/webkit/glue/resource_loader_bridge.h index 8d32f0c..bd5ad42 100644 --- a/webkit/glue/resource_loader_bridge.h +++ b/webkit/glue/resource_loader_bridge.h @@ -91,6 +91,13 @@ class ResourceLoaderBridge { public: virtual ~Peer() {} + // Called as download progress is made. + // note: only for requests with LOAD_ENABLE_DOWNLOAD_FILE set and the + // resource is downloaded to a standalone file and the file handle to it is + // passed in ResponseInfo during OnReceivedResponse. Note that size may be + // unknown and |size| will be kuint64max in that case. + virtual void OnDownloadProgress(uint64 position, uint64 size) {} + // Called as upload progress is made. // note: only for requests with LOAD_ENABLE_UPLOAD_PROGRESS set virtual void OnUploadProgress(uint64 position, uint64 size) = 0; @@ -105,7 +112,7 @@ class ResourceLoaderBridge { virtual void OnReceivedResponse(const ResponseInfo& info, bool content_filtered) = 0; - // Called when a chunk of response data is available. This method may + // 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; |