summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-05 06:38:52 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-05 06:38:52 +0000
commit703a31308be801fa9d7206bd0383d04f22eab2a1 (patch)
treee9c26259e2f0e9310546321f8d1581288803a3d8 /webkit
parent90f933a3b3ce799ebd2f1e04c8906ba0c6f514d9 (diff)
downloadchromium_src-703a31308be801fa9d7206bd0383d04f22eab2a1.zip
chromium_src-703a31308be801fa9d7206bd0383d04f22eab2a1.tar.gz
chromium_src-703a31308be801fa9d7206bd0383d04f22eab2a1.tar.bz2
Highlights of changes:
1. Added entry to ResourceResponseHead so that it contains either a base::PlatformFile (OS_WIN) or base::FileDescriptor (OS_POSIX) for passing the file handle from browser to renderer process. 2. Also added IPC messages for reporting download progress and ACK message for it. ResourceLoaderBridge::Peer::OnDownloadProgress is added so that the peer is notified of the download progress in the renderer process. 3. Load flag to kick start the resource loading for media files. LOAD_MEDIA_RESOURCE is added so that ResourceDispatcherHost knows how to use a different ResourceHandler for handling media resource request. Review URL: http://codereview.chromium.org/27168 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10972 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-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;