summaryrefslogtreecommitdiffstats
path: root/webkit/glue
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue')
-rw-r--r--webkit/glue/resource_loader_bridge.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/webkit/glue/resource_loader_bridge.h b/webkit/glue/resource_loader_bridge.h
index 948bc74..03153bb 100644
--- a/webkit/glue/resource_loader_bridge.h
+++ b/webkit/glue/resource_loader_bridge.h
@@ -91,9 +91,16 @@ 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) {};
+ // note: only for requests with LOAD_ENABLE_UPLOAD_PROGRESS set.
+ virtual void OnUploadProgress(uint64 position, uint64 size) {}
// Called when a redirect occurs.
virtual void OnReceivedRedirect(const GURL& new_url) = 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;