diff options
author | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-25 21:15:31 +0000 |
---|---|---|
committer | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-25 21:15:31 +0000 |
commit | 697af4a94a9351f6994d9207356930f373cf3a6e (patch) | |
tree | 501a3d73683bf94694da5a540c5b6b88501ba961 /chrome/browser/appcache | |
parent | 2a8132263c53c361e4a7618af889492407dbb8e2 (diff) | |
download | chromium_src-697af4a94a9351f6994d9207356930f373cf3a6e.zip chromium_src-697af4a94a9351f6994d9207356930f373cf3a6e.tar.gz chromium_src-697af4a94a9351f6994d9207356930f373cf3a6e.tar.bz2 |
Provide more info to the renderer process in appcache progress events.
BUG=39370
TEST= yes, updated unittests
Review URL: http://codereview.chromium.org/2166006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48197 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/appcache')
-rw-r--r-- | chrome/browser/appcache/appcache_frontend_proxy.cc | 8 | ||||
-rw-r--r-- | chrome/browser/appcache/appcache_frontend_proxy.h | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/chrome/browser/appcache/appcache_frontend_proxy.cc b/chrome/browser/appcache/appcache_frontend_proxy.cc index d81244c..89822d0 100644 --- a/chrome/browser/appcache/appcache_frontend_proxy.cc +++ b/chrome/browser/appcache/appcache_frontend_proxy.cc @@ -18,9 +18,17 @@ void AppCacheFrontendProxy::OnStatusChanged(const std::vector<int>& host_ids, void AppCacheFrontendProxy::OnEventRaised(const std::vector<int>& host_ids, appcache::EventID event_id) { + DCHECK(event_id != appcache::PROGRESS_EVENT); // See OnProgressEventRaised. sender_->Send(new AppCacheMsg_EventRaised(host_ids, event_id)); } +void AppCacheFrontendProxy::OnProgressEventRaised( + const std::vector<int>& host_ids, + const GURL& url, int num_total, int num_complete) { + sender_->Send(new AppCacheMsg_ProgressEventRaised( + host_ids, url, num_total, num_complete)); +} + void AppCacheFrontendProxy::OnContentBlocked(int host_id) { sender_->Send(new AppCacheMsg_ContentBlocked(host_id)); } diff --git a/chrome/browser/appcache/appcache_frontend_proxy.h b/chrome/browser/appcache/appcache_frontend_proxy.h index 234e36cf..2b6bc2e 100644 --- a/chrome/browser/appcache/appcache_frontend_proxy.h +++ b/chrome/browser/appcache/appcache_frontend_proxy.h @@ -24,6 +24,9 @@ class AppCacheFrontendProxy : public appcache::AppCacheFrontend { appcache::Status status); virtual void OnEventRaised(const std::vector<int>& host_ids, appcache::EventID event_id); + virtual void OnProgressEventRaised(const std::vector<int>& host_ids, + const GURL& url, + int num_total, int num_complete); virtual void OnContentBlocked(int host_id); private: |